Question
Create a C program that will have the user enter a sentence. Then the program will count the number of ms in the sentence (have
Create a C program that will have the user enter a sentence. Then the program will count the number of ms in the sentence (have this be in its own function). The program will then display the sentence the user entered and the number of ms that were in the sentence (have this be in another function). The program must count the letter regardless of whether it is upper or lower case.
Example:
Enter a sentence:
Major improvements were seen across many different fields of studies. With much more to be improved upon.
The sentence you typed is:
Major improvements were seen across many different fields of studies. With much more to be improved upon.
Number of m's in sentence: 7
You must have the steps which are indicated by in the brackets to be in different functions from your main function. In other words, your main function will be taking the users input, and parsing it to different functions, and then bringing the result back to your main function to display to the user again.
Hint:
Use a 1 dimensional array for this program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started