Write a C program that will ask the users to enter characters and then the progr
ID: 3651037 • Letter: W
Question
Write a C program that will ask the users to enter characters and then the program should output the following.
a)The number of characters that are digits;
b)The number of characters that are alphabetic;
c)The number of characters that are alphabetic which is Upper-case;
d)The number of characters that are alphabetic which is lower case;
In the function main do the following:
1)Use a while loop to get the characters from the user until ' ' is entered.
2)For each character,call function whatType.Function whatType accepts acharacter and returns an integer .If the character is digit,returns 1,if the character is alphabetic,returns 2, and otherwise returns 0.
3)For each character which is determined to be alphabetic through whatType,call function isUpperCase.Function isUpperCase accepts a character and return an integer.If the character is upper case,returns 1;otherwise returns 0.
Explanation / Answer
#include int whatType(char a){ if (a>=48 && a=65 && a=97 && a=65 && aRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.