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 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
Here is a simple Java program that reads the input file calculates totals and outputs the results to ... View full answer
Get step-by-step solutions from verified subject matter experts
