Change the while statement to a do-while statement enhance


1. Change the while statement to a do-while statement.

2. Enhance the program so it uses a while or do-while loop that lets the user enter more than one set of test scores. When you do that, be sure to move the declarations for the variables inside the loop so these variables are initialized each time through the loop.

3. Add code at the beginning of the while or do-while loop that asks the user how many test scores are going to be entered. Then, use this number in a for loop to get that many test score entries from the user. When the for loop ends, the program should display the summary data for the test scores.

4. If you didn't already do it, make sure that the code in the for loop doesn't count an invalid entry. In that case, an error message should be displayed and the counter should be decremented by one.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Change the while statement to a do-while statement enhance
Reference No:- TGS01230501

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)