Question: Refer to Program 5-21 given on pages 282-283 and Figure 5-24 of the textbook. The program should also have the statement to display your name.

  1. Refer to Program 5-21 given on pages 282-283 and Figure 5-24 of the textbook. The program should also have the statement to display your name. Note the Sales.txt file created and its contents. Note also the prompts displayed on the screen as well as the input entered. Obtain the screenshots and document.
  2. Refer to Program 5-22 given on pages 284-285 and Figure 5-25 of the textbook. Use Notepad to create a file named ListOfNumbers.txt. The program will read the numbers from this input file. Modify the given program so that it will also write the numbers read to another file namedResults.txt. The program will also calculate the count of the numbers read, and the total of these numbers. The count and total will also be written to the output file.

Obtain screenshots of the contents of input and output files, show the test runs, and document. Show the contents of the data files.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!