Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a C++ program thats a Magic 8 Ball game. To play the game you ask the Magic 8 Ball a yes or no question

Develop a C++ program thats a Magic 8 Ball game. To play the game you ask the Magic 8 Ball a yes or no question to have your secret fortune told. The ball has ten possible responses to the questions.
Ask the user to enter their yes or no question. Use the random number generator to determine which one of the ten possible responses to display as the users fortune.
The game should include a loop that allows the user to play the game until they want to exit. Probably Using cases.
Magic 8 Ball Responses:
1. It is certain.
2. It is decidedly so.
3. Without a doubt.
4. Yes - definitely.
5. You may rely on it.
6. As I see it, yes.
7. Most likely.
8. Outlook good.
9. Yes
10. Signs point to yes.
Bonus: If you can print out a magic 8 ball in the beginning message with *

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions