Question: Write a program that reads a word. If the word is upper case, print the lower case of it . If the word is lower
Write a program that reads a word.
If the word is upper case, print the lower case of it
If the word is lower case, print the upper case.
If the word is not completely uppercase or lower case, print the world with first half of the letter uppercase and the other half lowercase. Hint: you will need to do string splicing.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
