CEMC Banner

Problem of the Week
Problem B
Book Club

In Emil’s book club, each of the \(10\) members rates each book they read on a scale from \(1\) to \(5\). Emil wants to write a program to calculate the average rating for a book.

  1. Complete the given flowchart to show the steps Emil’s program needs to follow to calculate the average (mean) rating for a book.

    A flowchart with four steps in order from top to bottom. The
first step is to Input 10 ratings. The second and third steps are blank.
The fourth and final step is to Output the average rating.

  2. Emil finds that sometimes people make mistakes when typing their ratings. Modify your flowchart so that if a rating is not between \(1\) and \(5\), users have to input the \(10\) ratings again.

  3. Modify your flowchart from part (b) so that if the average rating is over \(4\), a message is displayed that says the book is excellent.

  4. What is the lowest possible rating that one of the book club members could give a book that could still result in a message saying the book is excellent?

Themes: Computational Thinking, Data Management