Dana Vrajitoru
C101 Computer Programming

Homework 5

Due date: Thursday, February 19, 2004.

Ex. 1. Write a program that reads a list of characters from the user with a do loop and counts the number of lowercase, uppercase, and digit characters entered by the user. The loop should stop when the user enters something else that these 3 types of characters (like a parenthesis, or a $ sign). The program then prints the result. Use the fact that their ASCII codes are in sequence.

Hint You can also find an example of the test for a character in the handouts.

Send me: Source code file containing one example of the program execution.