Reference no: EM132178488
First, you must do all 3tasks in homework 5 to be eligible for extra credit After you have completed the regular assignment, you may consider doing one or all of the following tasks for extra credit.
File vo currently the Second Hand Rose problem has you ask the user for the item number and original price.
Modify the program to read this data from a file. First, add the following to the Inventory class
1. A method that inputs an inventory item from a file, where the file is passed a The fle contains, on each line, the item number and then the original price of the item. as parameter.
Then modify main0 so it does the following:
1. open a text file named inventory txr
2. read all the Inventory records from the file by repeatedly calling the appropriate method in the Inventory class (Note that after each read, main0 should send the Inventory item to printSaleData0 for processing.)