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.
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 INSStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started