c++ help! Mad Libs - prompt the user for every CAPITALIZED word. Then, display t
ID: 3773221 • Letter: C
Question
c++ help! Mad Libs - prompt the user for every CAPITALIZED word. Then, display the below text, replacing the capitalized word with the word the user typed in. You are free to use any variable type you wish unless specified (ie NUMBER (INT)).
A Day In The Life Of a College Student Every TIME-SPAN, I wake up and get off my NOUN. I don‘t always have time to VERB a shower, but I always make sure to VERB my hair. Once that‘s done I get some NOUN (PLURAL OR SINGULAR), and then it‘s off to my first NOUN. I often get caught VERB ENDING IN ING in class. No one likes it when the OCCUPATION gives a surprise NOUN. My second class is NOUN Theory. Dr. FAMOUS PERSON is incredibly ADJECTIVE, but I never VERB her because of her thick NOUN. Her NOUN (PLURAL), however, are really ADJECTIVE. After lunch, I have no more NOUN (PLURAL) and I‘m free to VERB PREPOSITION my friends. This is right around NUMBER (INT) O’clock. Before I go to bed I VERB a little bit, in my room, NUMBER (INT) LETTER (CHAR).
Collect input and store it in an array. The prompt and the user response must be on the same line. Create at least 1 function to to handle the prompt and pass back the response. The variables FAMOUS PERSON, OCCUPATION, and PREPOSI- TION must be able to hold multiple words.
Explanation / Answer
The following is the required code. Code to copy is given at the end.
Note: ?str? is used as input. Use appropriate words for input to get the desired output.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.