
Lesson 6-3: Event-Controlled Loops
Looping | 139
Name __________________________________________ Date _______________________
Section _________________________________________
Use program CountUC for the exercises in this lesson.
// Program CountUC counts the number of uppercase letters
// on a line.
#include <iostream>
using namespace std;
int main ()
{
char letter;
int letterCt;
/* TO BE FILLED IN */
return 0;
}
Exercise 1: Fill in the body of program CountUC so that the number of uppercase letters on a line
of input is printed. Run your program with the following input and show the result. (Hint:
Remember that relational operators can be applied between two ...