Question: Exercise 1 : Run the program several times with various inputs. Exercise 2 : Notice the following do - while loop which appears near the

Exercise 1: Run the program several times with various inputs.
Exercise 2: Notice the following do-while loop which appears near the end of the program:
do
{
cout << "Would you like to find the average for another month?"; cout << endl << "Enter Y or N"<< endl;
cin >> choice;
} while(toupper(choice)!='Y' && toupper(choice)!='N');
How would the execution of the program be different if we removed this loop? Try removing the loop but leave the following lines in the program:
cout << "Would you like to find the average for another month?"; cout << endl << "Enter Y or N"<< endl;
cin >> choice;
Record what happens when you run the new version of the program.
Exercise 3: Alter program case_convert.cpp so that it performs the same task but uses tolower rather than toupper.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!