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
Step: 1
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