Question: This assignment will have you practice the modification of strings. For this assignment you will be making a paragraph formatter. To begin, the user will

This assignment will have you practice the modification of strings. For this assignment you will be making a paragraph formatter. To begin, the user will enter a paragraph and save it in an array of maximum length of 200. Functions are not required.

The following menu to be printed and will loop until the exit option is chosen.

C This option will capitalize the beginning of each sentence. (Hint Think about what comes before a new sentence. Then that can be used to find which letters to capitalize.)

D Deletes the current string and asks the user for a new one. (Hint - Be sure to delete every character)

M This will option will change any commas to periods. For example, the sentence I like ice cream, cake, and programming. Will become I like ice cream. Cake. and Programming.

N This option will separate sentences so that each is on a separate line.

P- replaces all spaces with underscores for example the sentence The dog meowed and the cat barked. Will become The_dog_meowed_and_the_cat_barked.

U- Print out the string. (Hint Start out with this one so that testing your program is easier.)

X- Exits the program.

please write the code in C language

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!