CPPForSchool.com: Flow of Control Set 1: Assignment 12

12. Any character is entered by the user; write a program to determine whether the character entered is a capital letter, a small case letter, a digit or a special symbol. The following table shows the range of ASCII values for various characters. 


Characters      ASCII Values
A – Z      65 – 90
a – z      97 – 122
0 – 9      48 – 57
special symbols      0 - 47, 58 - 64, 91 - 96, 123 – 127


Once again, I will be creating a program that is building on prior learned concepts and techniques.  This assignment is focusing on character inputs and interpreting the ASCII value.  Ultimately, I will need to create an algorithm and conditional statements to decipher the ASCII value and which category it falls under.  Below is my source code followed by the test outputs along with the sample output from CPPForSchool.















Comments

Popular posts from this blog

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 9

CPPForSchool.com: Array - Single Dimension Set 1 Assignment 6

CPPForSchool.com: Variable, Operator & Expression Set 1: Assignment 8