Question: programming language i use is Java. Back Lab 4.docx Lab 4 File Input/Output Write a program that will read the input file shown below (you
Back Lab 4.docx Lab 4 File Input/Output 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 S). Store grade as char Input file: Apples 10 10.25 A Bananas IS 4.56 B Grapes 8 9.55 A Output ter Quant kole . 0. 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
