Please check this code and see if this will work?
Lab 1 – Print Labels
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.
For the programming problem, create the pseudocode and enter it below.
Enter pseudocode here
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
your Pseudocode is absolutely working fine which is below...
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 answer is perfect and there is not any mistake.
Hit Like if you find the Answer useful.
Happy to help:)
Get Answers For Free
Most questions answered within 1 hours.