Question: Make a magic crystal ball on C# Visual Studio. Here are thepossible outcomes: It is certain It is decidedly so Yes Replyhazy try again Ask

Make a magic crystal ball on C# Visual Studio. Here are thepossible outcomes: •It is certain •It is decidedly so •Yes •Replyhazy try again •Ask again later •Concentrate and ask again •Myreply is no •Outlook not so good •Very doubtful

?Make a list of strings. Each outcome should be an element ofthe list.

?Your program first output 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 a number from 0 to the number of listelements – 1 (to avoid index out of range exception).

2.Use the random number as the index to find a random “magicball answer”

3.Prompt the users to press any key to clear and screen andreveal 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!