Question: You will create a C program that will have multiple functions. With int main() being your main function. In your int main() you will have

You will create a C program that will have multiple functions. With int main() being your main function. In your int main() you will have the user enter a sentence that will then be sent onto another function which will then count the number of zs in that sentence. It must count the letters regardless of whether the letters are upper or lower case. The function will then send the number of zs counted back to your int main() and you will display the original sentence from there to the user along with how many zs were found in the sentence.

Example of what the output would look like:

Make a sentence:

I wanna go to sleep. ZZzzzz

The sentence you typed is

I wanna go to sleep. ZZzzzz

The number of zs in this sentence is 6

Hint: Using a one-dimensional array will put you on the right track for this question.

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!