Menu

[Solved]Java Programming Need Help Asap Work Company Sells Cars Services Cars Instructed Write Pro Q37211455

JAVA Programming need help asap

You work for a company that sells cars and services cars. Youhave been instructed to write a program to help keep track of theseoperations for the store manager. Your company is moving to anobject oriented programming system for all of its software, so youwill have to create a car class and use it in your program. Besidescreating the cars when the user chooses, the user can also changeinformation about a car they choose. You will need to incorporateerror handling to make sure that incorrect values are not stored ifthe user enters them for a change. There are also menu options forspecific reports you should show on the screen when the userselects those options.

Car Class:

Your system works with cars. Each car has the followinginformation it keeps: vin (a string), make (a string), model (astring), year (a number greater than 1970), mileage (a number notless than zero), price (a floating point number greater than1000.)

Menu:

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

Main System Features/Processes:

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

  • Ability to add a car to the array and set all of the values forit with input from the user
  • Ability to ask the user which car in the array they wish tochange in some way, and then make that change.

(Hint: Have it in a separate methodyou are calling and print a message and ask them what they want tochange 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 userchooses.
  • Display the data for all the cars (currently in the array) forthe user.
  • Display the average mileage for all of the cars on thelot.
  • 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 withthe list price, a discount, and the asking price. It should ask theuser to choose if he/she feels the customer likes the car, somewhatlikes the car, or is not easily swayed. Customers liking the carget 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 themaximum number of cars on-site at any time is going to be 20.
  • This program must have multiple methods. Do not code the menuand all of the things it is doing all in main. There should be areasonable amount of methods to handle the features this program isdoing.
  • There should be error handling.
  • At least one output statement should show formatting to twodecimal places when printing the price of a car (to demonstrate thetechnique.)
  • At least one of the functions above should incorporate aloop
  • At least one of the functions above or the functions in theclass should incorporate If statements

Expert Answer


Answer to JAVA Programming need help asap You work for a company that sells cars and services cars. You have been instructed to wr… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *