Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help coding this: A C++ program that displays a mad lib for the user. A program that performs the following: Prompt the user for

Need help coding this:

A C++ program that displays a mad lib for the user.

A program that performs the following:

  1. Prompt the user for at least ten values for a mad lib. They can be vague or specific. Examples:
  2. an adjective (describing word)
  3. a plural noun (person, place, thing)
  4. a person
  5. a food
  6. a baseball team

The user data must be stored in an array or vector.

  1. You must use a loop to collect the values.
  2. Once all of the values are entered, display the result. Example:

image text in transcribed
I C:\\Users\\Ryan\\Desktop\\CPP\\Lab Exercise 3 - Mad Lib\\RDA.MadLib\\Debug\\RDA.MadLib.exe 0 X Enter an adjective (describing word) : smelly A Enter a sport: soccer Enter a city: New York Enter a person: Obama Enter an action verb (past tense): skipped Enter a vehicle: Mclaren Enter a place: the bathroom Enter a noun (thing, plural): spoons Enter an adjective (describing word): hot Enter a food (plural): pizza Enter a liquid: rain Enter an adjective (describing word) : friendly One day my smelly friend and I decided to go to the soccer game in New York. We really wanted to see Obama play. So we skipped in the Mclaren and headed down to the bathroom and bought some spoons. We watched the game and it was hot. We ate some pizza and drank some rain. We had a friendly time, and can't wait to go again. Would you like to save output to file? (y) : y Mad lib has been saved to madlib. txt. Press any key to exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

1. Solve for C: S = C + RC. 2. Solve for L: S = L RL.

Answered: 1 week ago