Question: The function will receive a character and it will print a message indicating which function is running the if function or the switch - case

The function will receive a character and it will print a
message indicating which function is runningthe if function or the switch-case
function. It will print the character that it received and then depending on the
character received it will use a single switch-case statement to do one of the
following operations. After completing the operations, it will print out the current
value of the character. (The following operations are the same as in part 2.)
a. If the character is a lower-case letter and not an a, convert it to an upper-case
letter.
b. If the character is an upper-case letter and not an A, convert it to a lower-
case letter.
c. If the character is a digit, add 64 to it. Remember to print the character as
a character and not as an integer.

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!