Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Go back to In Class Lab A where you created a Game Menu. Modify your code so that the user can input one of the

Go back to In Class Lab A where you created a Game Menu.

Modify your code so that the user can input one of the four choices.

Use an if/else statement so that depending on the users choice, the correct game will play. If the user inputs a 4 (Exit), your code exits without playing any game.

For the MATH and MADLIBS choices, use your code from Lab 1. For the CHOOSE YOUR OWN ADVENTURE choice, write the code. Write a cohesive story that allows the user to make decisions as to what to do next, and display the story accordingly. For example, you might ask the user if he/she wants to take the A, F, or B train. Depending on the answer, ask another question. Here is a sample output for this question, but you can make yours very different!

Hello! You are at Atlantic Ave in Brooklyn! Please let me know if you are taking the F, Q or B train!

B

Great! Enter 1 to go to Manhattan or 2 to go to Coney Island

2

Wow! You are looking toward a terrific adventure!

You are off the train now! Do you want to go jogging on the beach or to the amusement park (enter jogging or amusement)?

amusement

Have fun! How much money do you want to spend? Once I know that, I will give you a choice of rides! Then you will be on your own!

20.00

OK! Choose the Bumper Cars or the Rolling Thunder Roller Coaster!

use c++language

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions