Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Mark McCormick Used Car Lot needs a report and search ability of their inventory of the 2 5 best - selling cars of the

The Mark McCormick Used Car Lot needs a report and search ability of their inventory of the 25 best-selling cars of the year. You have been provided with a file containing a list the 25 best-selling cars. The inventory data is stored in a file named carinventory.txt. The data for each car is stored on two lines in the file and the data is space delimited. The below data must be read in from the specified data file and stored in arrays accordingly.The structure of each record of the file is as follows:LineItemType1DescriptionString2Serial Numberint2Quantityint2Costfloat2Pricefloat2Color codeint Name your class "CarReport". Use a minimum of 3 methods. Use printf to format and display PRICE with $ and 2 decimal places. Use a loop to read in the data from file. Use arrays to store data. Use the File/PrintWriter classes to read/write data to/from file Your program needs to be menu driven. You will allow the user to produce the report as displayed on these instructions (sorted by serial number order OR sorted by description in alphabetical order. The user will have the option to print the report to the screen, to an output file, or both. When the user selects the option to search, you need to prompt the user for the cars serial number. After the user enters a serial number, your program should search and display all of the associated data on one line for that ONE car to the screen.The data contains codes for each color. You will need to create a method to convert the code to the color description as follows:Color Chart10White11Black12Blue13Silver14Red15Green
using eclipse ide java
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago

Question

7 Describe the role of an HR business partner

Answered: 1 week ago

Question

5 Explain the concept of the psychological contract.

Answered: 1 week ago