Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

do exercise 2 plz Exercise 1 Write a C-program that asks for text input from the keyboard. The output of this program should be the

do exercise 2 plzimage text in transcribed

Exercise 1 Write a C-program that asks for text input from the keyboard. The output of this program should be the amount of characters, the amount of words and the amount of lines that have been typed. Multiple consecutive spaces should not be counted as multiple words. Reading keys from the keyboard is possible by using the function getchar(). The reading of characters from the keyboard can be stopped when the shutdown-code ^D (CTRL + D) is entered. ^D has the ASCII-value 4 (see 1.4 - Ctrl+D and Ctrl+Z issues (1.4)). Use a while loop. Exercise 2 Rewrite the C-program that was written for exercise 1, but use do while instead of while

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

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

What is the relationship between humans?

Answered: 1 week ago

Question

What is the orientation toward time?

Answered: 1 week ago