Question: Write the Do While loop using a sentinel value to control the loop, and also write the statements that make up the body of the
Write the Do While loop using a sentinel value to control the loop, and also write the statements that make up the body of the loop.
In this lab, you write a Do While loop that uses a sentinel value to control a loop in a Visual Basic program provided with the data files for this book. You also write the statements that make up the body of the loop. The source code file already contains the necessary variable declarations and output statements. You designed this program for the Hollywood Movie Rating Guide in Chapter 5, Exercise 15, in Programming Logic and Design. Each theater patron enters a value from 0 to 4 indicating the number of stars that the patron awards to the Guides featured movie of the week. The program executes continuously until the theater manager enters a negative number to quit. At the end of the program, you should display the average star rating for the movie.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
