[try Beta version]
Not logged in

 
lower/uppercase and char check

Mar 13, 2010 at 6:06am
hi, would someone be able to help show me the code for a program that prompts me to enter a character. Then the program determines if my input is an uppercase letter, a lowercase letter, or a character that is not a letter. Then the program display a message that classifies my input.
thanks much.
Mar 13, 2010 at 6:33am
good luck with that. You will need to show your efforts.
Mar 13, 2010 at 6:55am
Perhaps a little hint to get you started. Characters (chars) can be interpreted as integers, and hence you can perform checks to see if a certain char is within a certain range (e.g. the range represented by uppercase letters, for example).
Mar 13, 2010 at 7:39am
Look up isupper() islower() isletter() etc.
Mar 13, 2010 at 10:51pm
sammy34 wrote:
Perhaps a little hint to get you started. Characters (chars) can be interpreted as integers, and hence you can perform checks to see if a certain char is within a certain range (e.g. the range represented by uppercase letters, for example).

as a add-on to sammy34, it would be helpful if you looked at a ASCII chart
Last edited on Mar 13, 2010 at 10:52pm
Topic archived. No new replies allowed.