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:
1. Randomly generate an integer from 0 to the number of list items 1.
2. Use the random integer as the index to find the random magic ball
answer
3. Prompt the users to press any key to clear and screen and reveal the
magic ball answer
4. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!