CSCI 1226 Southern Methodist University toString Method Project The test driver shall use the default constructor twice, to create 2 test objects.The test

CSCI 1226 Southern Methodist University toString Method Project The test driver shall use the default constructor twice, to create 2 test objects.The test driver shall use the toString() method to print out each object.The test driver shall contain a static method set Car that has the following parameters (String brand, String model, int year, Car c) It resets the object’s values.Use the static method set Car on both objects.Repeat step 2 above. Assignment 4 (Due June 10)
CSCI 1226 Introduction to Computing Science and
Programming
Description

One purpose of this assignment is to:
1.
2.
Create a class that represents a car.
The class Car shall have the following instance variables:
a)
b)
c)
3.
4.
5.
brand represented by a String
model represented by a String
year represented by an int
The class Car shall have all possible getters.
The class Car shall have all possible setters.
The class Car shall have a customized toString() method. See
the sample run for customization information.
Description
The other purpose is to create a test driver to test your
Car class in the order of the steps below:
1. The test driver shall use the default constructor twice,
to create 2 test objects.
2. The test driver shall use the toString() method to print
out each object.
3. The test driver shall contain a static method setCar that
has the following parameters (String brand, String
model, int year, Car c) It resets the object’s values.
4. Use the static method setCar on both objects.
5. Repeat step 2 above.

One complete run
Car Information
Brand: null
Model: null
Year : 0
Car Information
Brand: null
Model: null
Year : 0
Car Information
Brand: Nissan
Model: Micra
Year : 2019
Car Information
Brand: Jeep
Model: Compass
Year : 2017
Grading


Submit your files named “Car.java” and “A4Driver.java” to
the Dropbox in BrightSpace called A4.
Out of 20 points:



8 points for documentation (include Javadoc comments at the
top of your file, and before each method + inline or multiline
comments where necessary)
8 points for correctly functioning code
4 points for exactly matching output, compared to what’s
depicted in these slides.

Purchase answer to see full
attachment

Don't use plagiarized sources. Get Your Custom Essay on
CSCI 1226 Southern Methodist University toString Method Project The test driver shall use the default constructor twice, to create 2 test objects.The test
For $10/Page 0nly
Order Essay
admin

Recent Posts

Economic Debate #3- Progressive Income Tax – The Homework Helper

Economic Debate- Progressive Income Tax For this Economic Debate, we are going to discuss the…

2 years ago

MKT 6120 – Marketing Management – Davis Learning Engagement #7

TOPIC: Going Global Discussion Thread 1 (initial post due Wednesday for full credit) Please note:…

4 years ago

jvjvjhvjhvhjvj

Assignment Topic This week will culminate in the creation of a narrated PowerPoint to create…

4 years ago

Students are supposed to select a technological organization of their choice.

The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted…

4 years ago

Increases the risk of wildfires

you need to post your 2-page information flier to share with your Final Project Group.…

4 years ago

Statistics for Technology management

discussion: Discuss the methods used at your company to measure and ensure quality products and…

4 years ago