Suppose you wanted to add the total to an existing file instead of writing a new file.

Question:

Suppose you wanted to add the total to an existing file instead of writing a new file. Exercise • R11.1 indicates that you cannot simply do this by specifying the same file for input and output. How can you achieve this task? Provide the pseudocode for the solution.

Data from exercise R11.1 

What happens when you supply the same name for the input and output files to the Total program of Section 11.1? Try it out if you are not sure.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: