Question: C++ please Question 5: 110 points]: Write a program that reads in a character and store it in the character variable ch, and then displays
Question 5: 110 points]: Write a program that reads in a character and store it in the character variable ch, and then displays one of the following messages: 1. if ch is a lower case character, the message "ch is a lower case character" is displayed 2. if ch is an upper case character, the message "ch is an upper case character" is displayed. 3. fch is not a character, the message "This is not a charecter" is displayed. Hint: The ASCII code for characters are organized as follows: Character 'A' has ASCII code 65 Character B' has ASCII code 66 (ASCII ('A'+1) Character 'C' has ASCII code 67 (ASCII (A' +2) Character 'Z' has ASCII code 90 Character 'a' has ASCII code 97 Character 'b' has ASCII code 98 (ASCII (a' +1) Character 'c' has ASCII code 98 (ASCII ('a' +2) Character 'z' has ASCII code 122 in clude
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
