Answered step by step
Verified Expert Solution
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
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 agairnStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started