Question: change varibles name and Write a java program that will read the input file shown below (you can use any numbers you want). The file

change varibles name and Write a java 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.

 change varibles name and Write a java program that will read

Input file: Apples 10 10.25 A Bananas 15 4.56 B Grapes 8 9.55 A Output Fruit Report Item Grade Quantity Price Total 10 10.25 Apples Bananas $ 102.50 $ 68.40 B 15 4.56 Grapes A 8 9.55 $ 76.40 Grand Total $ 247.30 Input file: Apples 10 10.25 A Bananas 15 4.56 B Grapes 8 9.55 A Output Fruit Report Item Grade Quantity Price Total 10 10.25 Apples Bananas $ 102.50 $ 68.40 B 15 4.56 Grapes A 8 9.55 $ 76.40 Grand Total $ 247.30

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!