CIS 171 Java Programming
Instructions:
Part 1.
Use Exercise 5.17 as your basis. Create a Java application that will capture the input data from the keyboard and store it in a file. Your application should allow the user to enter the Product Number and Quantity Sold. It should allow the user to enter as many numbers as needed by the user.
Your application should store these numbers in a file called sales.dat. The file should be formatted so that the Product Number and Quantity sold are on the same line of the file and a new line should be created for each set of numbers.
Call your application program WriteSalesFiles.
Part 2.
Modify Exercise 5.17 into a new class called ProcessSales. Change the new class so that it will read the input file called sales.dat as the input to the program.