Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

- 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 input

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions