CaseCount - i Complete the initialization loop and post...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// filename: CaseCount.cpp // author: j. dzuback // modified: // date: 10/03/09 / /* ********************************************** The program prompts the user for a series of characters, etc. entered via the keyboard, and counts the number of characters (and terminates) per the instructions for each problem. .. ********************************************** */ #include <iostream> #include <iomanip> # using namespace std; u int main() { char lettr; int charactrCtr = 0;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: i // Complete the initialization, loop and post loop // pieces of this program. cout << "Enter leters both upper case and lower case" << endl; cout << "press enter for the program to stop: "; cin.get (lettr); while (lettr != '\n') { if ((lettr >= 'A') && (lettr <= 'Z')) charactrCtr++; cin.get (lettr); } cout << endl; cout << "The numbers of upper case letters is: " << charactrCtr << endl; c return 0; } // end of main...
View Full Document

This note was uploaded on 02/08/2011 for the course CSC 101 taught by Professor Joedzuback during the Spring '11 term at Union County.

Ask a homework question - tutors are online