Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started