Question: 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
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, reprompt 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
3.39 Rating (161 Votes )
There are 3 Steps involved in it
a Flowchart Pseudocode start Declarations num numOfStars num count 0 num total 0 num avg string PROMPT Enter the star rating or a negative number to q... View full answer
Get step-by-step solutions from verified subject matter experts
