View Single Post
Old May 8th, 2006, 9:47 AM   #1
lilmul123
Newbie
 
Join Date: Mar 2006
Posts: 19
Rep Power: 0 lilmul123 is on a distinguished road
How to go about starting this program?

Here's what I have to do. Can anyone give me an idea on what I should do to do this?

Write a program that counts the number of letters, digits (0-9), and common puncuation symbols entered by the user. Stop inputting when the user presses ENTER. Use a switch statement to categorize the characters into puncuation, digits, and letters. When the program ends, report the number of characters in each category. (If you like, simply assume that, if a character is not a digit or puncuation, it is a letter. Also, just use the most common puncuation symbols (. , ? ! : .
lilmul123 is offline   Reply With Quote