Pendant Publishing edits multi-volume manuscripts for many authors. For each volume, they want a label that contains the author's name, the title of the work, and a volume number in the form Volume 9 of 9. For example, a set of three volumes requires three labels: Volume 1 of 3, Volume 2 of 3, and Volume 3 of 3. Design an application that reads records that contain an author's name, the title of the work, and the number of volumes. The application must read the records until eof is encountered and produce enough labels for each work.

Answer :

temmydbrain

Answer:

Check the explanation

Explanation:

Pseudocode For Reading File:

start

Declarations

InputFIle records.txt

OutputFile result.txt

string authorName

string title

int numOfVol

open InputFile

open OutputFile

input authorName, title, numOfVol from records.txt

while not eof

output authorName

output title

output numOfVol

end while

close records.txt

close results.txt

END

The flowchart for reading the file can be seen below.

${teks-lihat-gambar} temmydbrain

The pseudocode for the given problem is given below.

What is Pseudocode?

This refers to the use of language to describe the sequence of steps for the execution of a problem.

  1. start
  2. Declarations
  3. InputFIle records.txt
  4. OutputFile result.txt
  5. string authorName
  6. string title
  7. int numOfVol
  8. open InputFile
  9. open OutputFile
  10. input authorName, title, numOfVol from records.txt
  11. while not eof
  12. output authorName
  13. output title
  14. output numOfVo
  15. end while
  16. close records.txt
  17. close results.txt
  18. END

Read more about pseudocode here:

https://brainly.com/question/24953880

Other Questions