Question: Java assignment Write a program that simulates a Magic 8 ball, which is a fortune-telling toy that displays a random response to a yes, no

Java assignment

Write a program that simulates a Magic 8 ball, which is a fortune-telling toy that displays a random response to a yes, no question. The program should create an array of 12 Strings having the following values.

Yes, of course Without a doubt, Yes You can count on it For sure Ask me later Im not sure

I cant tell you right now Ill tell you after my nap No way! I dont think so

Without a doubt No The answer is clearly No

The program prompts the user to ask a question and then display one of the responses randomly selected. The program should repeat until the user quits.

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 Databases Questions!