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: . • 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. . . entwle . • 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. . . . Text Statistics: Ends with a thank you message.
can somone help me with this in c language
![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:
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.
.
.
.
entwlc
•
.
Text Statistics:](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2ca7c533-b16a-48ac-b683-2466b6c3b5e3%2Fd7b46697-a038-4f37-9960-9630fdbfae97%2Fnccbnwf_processed.jpeg&w=3840&q=75)
![Execution:
Use the file /classes/cis 158/cntwlc/welcome get the example output using the following
command:
The file contains the following text
cntwlc </classes/cis 158/cntwlc/welcome
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!"
Example of Output
Lines
Words
[s158a00@cisweb ex0]$ cntwlc <testFile
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.
Text Statistics:
Characters
Alphabetic
5
37
188
139
Digits
Special
Thank you for using cntwlc. Bye!
3
9](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2ca7c533-b16a-48ac-b683-2466b6c3b5e3%2Fd7b46697-a038-4f37-9960-9630fdbfae97%2F7cq6gx_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
ok thank you, how would I use the code from the follow up to make a makfile, is it possible to do with just 1 file ? The makefile follows these directives:
The makefile directives will have a target for each .c that will create the object file, a target to create the executable (binary) file using the object files created by the object targets and a target called clean to remove all object files.
Hi thank you, but this doesnt full answer the question and in the output screenshot you posted the count is showing that there are 0 lines and only 3 words ?
also in the picture where it says execution and in example of output, it shows that the program is suppposed to call another file that has text already in it and count that while still using the scanf feature to promt the user to enter the file, how would I do that? Lastly it says the user must hit control D when they are finished, can you incorporate that as well
thank you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)