Question: Write a program that will read the input file shown below (you can use any numbers you want). The file contains grocery items, quantity

Write a program that will read the input file shown below (you can use any numbers you want). The file

Write a program that will read the input file shown below (you can use any numbers you want). The file contains grocery items, quantity and unit cost. Calculate total for each item and grand total. Read Title from the keyboard. Output the results to the screen and to a data file as shown below (note position of $). Store grade as char. Input file: Apples 10 10.25 A Bananas 15 4.56 B Grapes 8 9.55 A Output Item Apples Bananas Grapes Grade A A Fruit Report Quantity 10 15 8 Price 10.25 4.56 9.55 Total $ 102.50 $ 68.40 $76.40

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a simple Java program that reads the input file calculates totals and outputs the results to ... View full answer

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 Programming Questions!