Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The last person did NOT answer my question so I am repeating it CREATE A JAVA LANGUAGE CODE FOR THIS Create the code for a

The last person did NOT answer my question so I am repeating it

CREATE A JAVA LANGUAGE CODE FOR THIS

Create the code for a Magic 8 Ball game in which the user enters a question such as "What does my future hold?" The computer randomly selects one of eight possible vague answers, such as "It remains to be seen".

HINT: Create an array of 8 answers; The logic:

  • Ask user to input a question
  • Get a random number between 0 and 7
  • Display the answer from the array for that random number

I DO NOT NEED A PSEUDOCODE OR FLOW CHART I NEED THE CODE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago