subject

You work for a company that sells cars and services cars. You have been instructed to write a program to help keep track of these operations for the store manager. Your company is moving to an object oriented programming system for all of its software, so you will have to create a car class and use it in your program. Besides creating the cars when the user chooses, the user can also change information about a car they choose. You will need to incorporate error handling to make sure that incorrect values are not stored if the user enters them for a change. There are also menu options for specific reports you should show on the screen when the user selects those options.

Car Class:

Your system works with cars. Each car has the following information it keeps: vin (a string), make (a string), model (a string), year (a number greater than 1970), mileage (a number not less than zero), price (a floating point number greater than 1000.)

Menu:

You need to have a menu system for this program. The user should be allowed to do several different things and each time returning to the main menu when they are done.

Main System Features/Processes:

Here are the main functional features your system has to have for the user:

Ability to add a car to the array and set all of the values for it with input from the user
Ability to ask the user which car in the array they wish to change in some way, and then make that change.
(Hint: Have it in a separate method you are calling and print a message and ask them what they want to change and number them so you can do a separate If/Else or Switch. Then ask them for the value to change it to, and do it there. …don’t try to do it in the main menu.)

Display a message with all the data for a car the user chooses.
Display the data for all the cars (currently in the array) for the user.
Display the average mileage for all of the cars on the lot.
Display the lowest price for all of the cars on the lot.
Make an Offer. This is a printout as if to show a customer with the list price, a discount, and the asking price. It should ask the user to choose if he/she feels the customer likes the car, somewhat likes the car, or is not easily swayed. Customers liking the car get a $100 discount, somewhat liking the car get a $200 discount, and not easily swayed get a $500 discount.
Here are the additional non-functional requirements:

This program must have at least one array. For simplicity the maximum number of cars on-site at any time is going to be 20.
This program must have multiple methods. Do not code the menu and all of the things it is doing all in main. There should be a reasonable amount of methods to handle the features this program is doing.
There should be error handling.
At least one output statement should show formatting to two decimal places when printing the price of a car (to demonstrate the technique.)
At least one of the functions above should incorporate a loop
At least one of the functions above or the functions in the class should incorporate If statements
Expert Answer

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Aletter or menu command that starts an action when the user presses the designated letter and the alt key together is called what?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
question
Computers and Technology, 24.06.2019 20:30
Drums installed, you would apply clicks of the parking brake to obtain a slight drag on both rear wheels
Answers: 1
You know the right answer?
You work for a company that sells cars and services cars. You have been instructed to write a progra...
Questions
question
Computers and Technology, 13.07.2019 11:10
question
Geography, 13.07.2019 11:10
question
Geography, 13.07.2019 11:10
Questions on the website: 13722363