Answered step by step
Verified Expert Solution
Question
1 Approved Answer
flow chat also - 7. Write and comment a C program that: - Reads a keyboard character from the keyboard input one at a time.
flow chat also
- 7. Write and comment a C program that: - Reads a keyboard character from the keyboard input one at a time. The program should continue reading the string until any symbol is entered. (use a do_while loop) The program should count the number of characters which are letters and also decimal digits. [Hint: Declare and initialize two integer variables num_chars and num_digits] The total number of letters and digits should be displayed on the screen. Flowcharting is an optional bonus of [+10%] Example output: (Your program must not just imitate the output shown below, but must function) >> Enter character on keyboard: P Enter character on keyboard: 7 Enter character on keyboard: 1 Enter character on keyboard: a Enter character on keyboard: 2 Enter character on keyboard: Z Enter character on keyboard: h Enter character on keyboard: ! Result: total of 4 letters and 3 digits were inputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started