#include <iostream.h>
// define your functions here:
// isUpper, isLower, isPunctuation, isDigit, ...
int main()
{
// Some counters for my character classes:
int numberOfDigits = 0;
int numberOfUppercase = 0;
// ... you can declare and initialize the rest here.
char ch; // for holding the current character read from the termial
cout << "Enter a bunch of text for counting.\n";
cout << "Type <ctrl-z> when done to indicate the end-of-file.\n";
while ( cin.get(ch) ) // reads a character from the terminal
// cint.get(ch) returns false on end-of-file)
{
// write your code here, but the basic idea is as follows:
// if ch is a digit
// increment numberOfDigits
// if ch is an upper case letter
// increment numberOfUppercase;
// ...
}
// report the totals, for example
// print "Digits: " followed by numberOfDigits
// ...
return 0;
}