Question: Write a program called InventoryReport.java to generate a summary report on a furniture store inventory. An example of the inventory data file, called inventory.txt, is

Write a program called InventoryReport.java to generate a summary report on a furniture store inventory. An example of the inventory data file, called inventory.txt, is shown below. The first line specifies the number of records in the file. Each line represents an inventory record made up of a comma separated item name, number of available items, and item price respectively. The program shall determine the following quantities: 1. The total value of the inventory 2. The cheapest item 3. The most expensive item The output shall be written to a file called ireport.txt as shown below. Add more records and change the first line accordingly, then run your program to test its correct operation.Write a program called InventoryReport.java to generate a summary report on afurniture store inventory. An example of the inventory data file, called inventory.txt,

ireport.txt - Editor report.txt Source History 1Inventory Statistics 3 Inventory total value: $126145.89000000001 4 Cheapest item: Picture Frame - $15.78 5 Most expensive item Dining Table- $1199.99 INS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!