Question: Please write the code is C. Thank You! 1) Counting words and characters (50 points) Write a C program, count.c, which counts the number of

Please write the code is C. Thank You!

Please write the code is C. Thank You! 1) Counting words andcharacters (50 points) Write a C program, count.c, which counts the number

1) Counting words and characters (50 points) Write a C program, count.c, which counts the number of words, characters, and frequency of each character in the user provided sentence. Your program must: Ask user to enter a sentence (accept input until user hits "enter"). Assume that the sentence is no longer than 200 characters. Count the number of words, assume that words are separated by a single space character. Count the number of characters and also the frequency of each character (including spaces and special characters). Do not display count for characters that don't exist in the user input. 1. 2. 3. Example executions: $ gcc -Wall -o count count.c $ ./count Enter a sentence: Hello Your sentence has 1 word (s) Your sentence has 5 character (s) Your sentence has l H Your sentence has 1e Your sentence has 2 1 Your sentence has 1 o ./count Enter a sentence: I am in class! Your sentence has 4 word(s) Your sentence has 14 character (s) Your sentence has 3 Your sentence has 1! Your sentence has 1I Your sentence has 2 a Your sentence has 1c Your sentence has 1 i Your sentence has 11 Your sentence has m Your sentence has 1 n Your sentence has 2 s

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!