Question: Make a magic crystal ball. Here are the possible outcomes: It is certain It is decidedly so Yes Reply hazy try again Ask again later
Make a magic crystal ball. Here are the possible outcomes:
It is certain
It is decidedly so
Yes
Reply hazy try again
Ask again later
Concentrate and ask again
My reply is no
Outlook not so good
Very doubtful
Magic Crystal Ball
Make a list of strings. Each outcome should be an item of the
list.
Your program first outputs all outcomes to the users.
Then prompt the user to press any key to clear the screen.
Set up a loop to:
Randomly generate an integer from to the number of list items
Use the random integer as the index to find the random magic ball
answer
Prompt the users to press any key to clear and screen and reveal the
magic ball answer
Prompt for another answer or end the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
