Requirements Create the c program entwle.c in the p04/ex0 directory. Using the format and words displayed in the Example of Output, the program will do the following: • Display a the welcome message followed by a blank line • Displays a message that indicates what the program will do followed by a blank line. • Asks the user to enter text after this line followed by a blank line. • The program will read stdin (standard input) until it encounters an end of file marker (The user enters a Ctrl D) A blank line Display the heading "--- A blank line • On a separate lines will display using test as in the example, the number of lines (do not count the line with only the EOF), words, characters (do not include EOF), alphabetic characters, digits, special characters (not counting spaces or new lines) • A blank line. • Ends with a thank you message. • . Text Statistics:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Add comments for Program 04

Execution:
Use the file /classes/cis 158/cntwlc/welcome get the example output using the following
command:
CIS158 Programming Assignment - P04
Line Word Character Count & Sum Times
The file contains the following text
entwlc </classes/cis 158/cntwlc/welcome
Example of Output
Welcome to CIS158.
C and Tux are working hard, are you?
Hopefully you are having fun and learning a new skill.
That being the case, as it should, it is time to say
"Have a Nice Semester!"
[s158a00@cisweb ex®]$ cntwlc <testFile
Lines
Words
Welcome to cntwlc the CIS158 version of word count.
This program will produce statistics about the text entered from standard
in.
Please enter your text now. When finished enter a control D to end.
Characters
Alphabetic
Text Statistics:
5
37
188
139
Digits
Special
Thank you for using cntwlc. Bye!
3
9
Transcribed Image Text:Execution: Use the file /classes/cis 158/cntwlc/welcome get the example output using the following command: CIS158 Programming Assignment - P04 Line Word Character Count & Sum Times The file contains the following text entwlc </classes/cis 158/cntwlc/welcome Example of Output Welcome to CIS158. C and Tux are working hard, are you? Hopefully you are having fun and learning a new skill. That being the case, as it should, it is time to say "Have a Nice Semester!" [s158a00@cisweb ex®]$ cntwlc <testFile Lines Words Welcome to cntwlc the CIS158 version of word count. This program will produce statistics about the text entered from standard in. Please enter your text now. When finished enter a control D to end. Characters Alphabetic Text Statistics: 5 37 188 139 Digits Special Thank you for using cntwlc. Bye! 3 9
Program Name
Description
The program will count the number of lines, words, characters from standard input.
.
Requirements
Create the c program entwlc.c in the p04/ex0 directory. Using the format and words displayed
in the Example of Output, the program will do the following:
.
entwlc
•
•
CIS158 Programming Assignment - P04
Line Word Character Count & Sum Times
.
Display a the welcome message followed by a blank line
Displays a message that indicates what the program will do followed by a blank line.
Asks the user to enter text after this line followed by a blank line.
The program will read stdin (standard input) until it encounters an end of file marker
(The user enters a Ctrl D)
• A blank line
Display the heading "---
A blank line
• On a separate lines will display using test as in the example, the number of lines (do not
count the line with only the EOF), words, characters (do not include EOF), alphabetic
characters, digits, special characters (not counting spaces or new lines)
A blank line.
Ends with a thank you message.
Text Statistics:
Transcribed Image Text:Program Name Description The program will count the number of lines, words, characters from standard input. . Requirements Create the c program entwlc.c in the p04/ex0 directory. Using the format and words displayed in the Example of Output, the program will do the following: . entwlc • • CIS158 Programming Assignment - P04 Line Word Character Count & Sum Times . Display a the welcome message followed by a blank line Displays a message that indicates what the program will do followed by a blank line. Asks the user to enter text after this line followed by a blank line. The program will read stdin (standard input) until it encounters an end of file marker (The user enters a Ctrl D) • A blank line Display the heading "--- A blank line • On a separate lines will display using test as in the example, the number of lines (do not count the line with only the EOF), words, characters (do not include EOF), alphabetic characters, digits, special characters (not counting spaces or new lines) A blank line. Ends with a thank you message. Text Statistics:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education