Question
Using the random feature and lists, create fortune telling program similar to the magic 8-ball. 1) Have the user type in a question and the
Using the random feature and lists, "create" fortune telling program similar to the magic 8-ball.
1) Have the user type in a question and the computer comes up with a response.
2) With a WHILE loop allow the user to keep asking questions until they get bored and want to stop.
Below is a list of the common responses given in the tradition magic 8-ball toy:
It is certain.
It is decidedly so.
Without a doubt.
Yes - definitely.
As I see it, yes.
Most likely.
Outlook is good.
Signs point to yes.
Reply hazy, try again.
Ask again later.
Better not tell you now.
Cannot predict now.
Concentrate and ask again.
Don't count on it.
No.
My sources say no.
Outlook not so good.
Doubtful.
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