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

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!