Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using java program. Page Magic8Ball (20 points): DO NOT create another project, we are going to add a new file to Project2. From the NetBeans

image text in transcribed

using java program.

Page Magic8Ball (20 points): DO NOT create another project, we are going to add a new file to Project2. From the NetBeans File'menu select New File'. On the dialog box under File Type' select 'Java Main Class' and click 'Next. Create a main class with the name Magie8Ball, verify it is part of 'P the main method write a program that simulates the popular children's decision- making toy called the Magic 8 Ball. roject2' and click the Finish' button. In To do this, the program will first have to prompt the user to enter his or her question. The user's response should be "stored" in a String-type variable named response. Use the nextLine () method on your Scanner-type object to obtain the entire line of text entered by the user. Once the program has read the entire line of text entered by the user, the program should enerate a random number between 0 and 19, which represents the 20 responses which are possible for a Magic 8 Ball: . It is certain . It is decidedly so . Without a doubt . Yes definitely . You may rely on it .As I see it, yes . Most likely . Outlook good . Yes . Signs point to yes . Reply hazy try agairn

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

Identify external recruitment sources.

Answered: 1 week ago

Question

Support your message with writing techniques

Answered: 1 week ago

Question

Explain the stored-program concept?

Answered: 1 week ago