Question: 2. Predefined Character Functions in cetype in C++, we have several predefined character functions i, The following program reads one character from the keyboard and

 2. Predefined Character Functions in cetype in C++, we have several

2. Predefined Character Functions in cetype in C++, we have several predefined character functions i, The following program reads one character from the keyboard and then displays the character in uppercase if is lowercase and does the opposite when the character is in uppercase. If the character is anything else, it displays a message saying that it is an unknown character. For people who do not know about the eetype library almost seems like a ghost is doing things for you //-dLaplay apooky taaape, if 1 digit Now, using a function from the ceetype? library, modty the program such that a digit is entered, it displays a spooky message and tells which digit the character was Similarly, use another function from the library to modity the program such that if a whitespace character (e.g, blank space, tab, new line) is entered, it displaysa spooky message indicating that a whiteipace character was entered. Note that you may have to modify your cin statement that uses the extraction operator(Le >>) to read in a whitespace character correctly. 2. Predefined Character Functions in cetype in C++, we have several predefined character functions i, The following program reads one character from the keyboard and then displays the character in uppercase if is lowercase and does the opposite when the character is in uppercase. If the character is anything else, it displays a message saying that it is an unknown character. For people who do not know about the eetype library almost seems like a ghost is doing things for you //-dLaplay apooky taaape, if 1 digit Now, using a function from the ceetype? library, modty the program such that a digit is entered, it displays a spooky message and tells which digit the character was Similarly, use another function from the library to modity the program such that if a whitespace character (e.g, blank space, tab, new line) is entered, it displaysa spooky message indicating that a whiteipace character was entered. Note that you may have to modify your cin statement that uses the extraction operator(Le >>) to read in a whitespace character correctly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!