Registration workers at a conference for authors of children’s books have collec
ID: 3758518 • Letter: R
Question
Registration workers at a conference for authors of children’s books have
collected data about conference participants, including the number of books
each author has written and the target age of their readers. The participants have
written from 1 to 40 books each, and target readers’ ages range from 0 through 16.
Design a program that continuously accepts an author’s name, number of books
written, and target reader age until a sentinel value is entered. Then display a list of
how many participants have written each number of books (1 through 40).
Psuedocode only
Explanation / Answer
lst is a list of participants
while sentinal is not entered do
enter author's name
enter number of books written
enter target reader age
add this participant details to lst
for num_of_books = 1 to 40
count = 0
foreach participant in lst
if participant's number of books written is num_of_books then
increment count by 1
end
display count
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.