On dec 3 I will have a test with a simple question (very very beginner programming course) and there will be 45 minutes given time.
2:30pm est, Dec 3rd - availability.
Write a full Java program which will allow a customer to enquire the price of a car at a Toyota dealership. The price of a car is dictated by the following information:
- Model of the car (such as Corolla, Camry, Sienna)
- Year of manufacturing – If the year is smaller than 2018 the car will be considered Used
- For Used cars the price will depend on the Mileage.
This program will use the class Inventory, which contains the prices for new cars.
The API for Inventory is the following:
public Inventory (); // constructor
public getPrice (String model);
Your program should get from the keyboard the model of the car and the year of manufacturing. For Used cars will also get the mileage on the car. For Used cars the price is lowered by 10% for cars with less than 30,000 miles, 20% for cars with 30,000-60,000 miles and 50% for cars with more than 60,000 miles.
The program should allow the user to enquire prices for several cars. The repetition loop will stop when for the model of the car the user will enter the word “Stop”. Make sure that the user of the program is presented with information about the options for the car model and your program will force the user to enter the correct data from the keyboard.
For each enquiry the program will present the answer as in the following example:
Model: Camry; Year: 2012; Price: $24,545.67
11 freelancer chào giá trung bình$32 cho công việc này
Hello how are you, I hope you are well, I am a developer with more than 15 years of experience I can make your program. You can hire me with confidence click the Hire button to start doing it right now
Hi i have completed my master degree in computer science and i am expert developer and programmer and i can do this task properly according to your wish kindly message me i am ready to work on your task right now