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 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Selling a product through an electronic medium is
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
How would you cite different books by the same author on the works cited page? moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. –––. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry – a critical review. dallas: garden books, 1962. print. –––. folk songs and ballads. salem: poetry press, 1999. print.
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
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
Questions on the website: 13722363