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 11:00
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
question
Computers and Technology, 23.06.2019 08:30
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
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
Mathematics, 25.05.2021 03:40
question
Geography, 25.05.2021 03:40
question
Mathematics, 25.05.2021 03:40
question
Mathematics, 25.05.2021 03:40
question
Biology, 25.05.2021 03:50
question
Mathematics, 25.05.2021 03:50
question
Mathematics, 25.05.2021 03:50
question
Mathematics, 25.05.2021 03:50
question
Mathematics, 25.05.2021 03:50
Questions on the website: 13722363