Question: CPS 180 Lab Assignment #8 File I/O-Write Text File/Read Text File Assigned: 7/7/17 Due: 6/14/17 Points 40 Part 1: Create a program that creates a
CPS 180 Lab Assignment #8 File I/O-Write Text File/Read Text File Assigned: 7/7/17 Due: 6/14/17 Points 40 Part 1: Create a program that creates a text file from user input with the following data, which is a list of tools, prices and quantities. There should be 3 columns of data, including 1 String for toolName, 1 double for toolPrice, and 1 int for toolQty. Hammer 15.00 5 49.99 3 3.00 6 6.25 4 400 2 1250 I Prybar 7.25 4 14.50 6 Sander 27.99 2 Part 2: Create a program which reads the data file created in Part 1, and displays it as a table report with headings and a 4th calculated column. Price Qty Ext Price 15.00 49.99 49.97 300 400 2 14.50 Sander 2799 2 5598 Also, after the table is printed, include a sum of the Ext. Price at the end, an average of the Price column, and a count of the Qy of items. Sample output: Total of Ext Price: $999.99 Average Single Item Price: $99.99 Count of all items Qty: 99
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
