expand icon
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
book Programming Logic and Design, Introductory 7th Edition by Joyce Farrell cover

Programming Logic and Design, Introductory 7th Edition by Joyce Farrell

Edition 7ISBN: 1285225562
Exercise 25

a. Design a program for the Hollywood Movie Rating Guide, which can be installed in a kiosk in theaters. Each theater patron enters a value from 0 to 4 indicating the number of stars that the patron awards to the Guide’s featured movie of the week. If a user enters a star value that does not fall in the correct range, re-prompt the user continuously until a correct value is entered. The program executes continuously until the theater manager enters a negative number to quit. At the end of the program, display the average star rating for the movie.

b. Modify the movie-rating program so that a user gets three tries to enter a valid rating. After three incorrect entries, the program issues an appropriate message and continues with a new user

Step-by-step solution
Verified
like image
like image

Step 1 of 8

Hollywood Movie Rating Guide

a. Flowchart:

Flowchart for the rating of a movie is as follows:

    <div class=answer> Hollywood Movie Rating Guide a. Flowchart: Flowchart for the rating of a movie is as follows:


Step 2 of 8


Step 3 of 8


Step 4 of 8


Step 5 of 8


Step 6 of 8


Step 7 of 8


Step 8 of 8

close menu
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
cross icon