Answer to Question #25689 in C for Sam

Question #25689
Write a complete C program to read a single string using the input function gets(). Then test whether the string contains all integers, or all alphabets or a combination of both (i.e., alphanumeric). If the string contains all integers, then print the string as it is. If the string contains all alphabets, then check whether the alphabets are in lowercase or uppercase. If any of the characters in the string is in lowercase, then convert them to uppercase, and vice versa. Finally, print the string. On the other hand, if the string is an alphanumeric, then check whether the alphabet(s) in it is/are in lowercase, then convert it/them to uppercase and vice versa. Finally, print the converted string with the same numeric characters as in the original string. Use the output function puts() whenever you are printing the string.
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog