Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that simulates a Magic 8 Ball, which is a fortune-telling toy that displays a random response to a yes or no

image text in transcribed

Write a C++ program that simulates a Magic 8 Ball, which is a fortune-telling toy that displays a random response to a yes or no question from the user. The program should ask the user to ask a yes or no question, and then display one of the responses randomly from an array of 12 responses. The program will continue to ask the user questions and respond until the user types in DONE. The array of responses should contain the following 12 responses Yes, of course! o Without a doubt, yes. o You can count on it. o For sure! o Ask me later o I'm not sure. o I can't tell you right now. o I'1l tell you after my nap. o I don t think so. o Without a doubt, no o The answer is clearly NO

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

Makers And Takers The Rise Of Finance And The Fall Of American Business

Authors: Rana Foroohar

1st Edition

0553447238, 978-0553447231

Students also viewed these Databases questions

Question

What is deadweight loss?

Answered: 1 week ago