Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer this question ( only ) with a method that is related to these topics : 1- intro to java 2- branches 3- loops

please answer this question ( only ) with a method that is related to these topics :
1- intro to java
2- branches
3- loops
4- methods
5- classes objects
Do not answer it with a method of higher level or doesnt include the previous topic.
do not use arrays please
image text in transcribed
image text in transcribed
Question 1 (50 points): ESP Game Write a program that tests your ESP (extrasensory perception). The the following list of words: program should randomly select the name of a color from Red; Green, Blue, Orange, Yellow To select a word from the list, the program can generate a random number. For example, if the number is 0, the selected word is Red; if the number is 1, the selected word is Green; and so forth. should ask the user to enter a color that the Next the program computer has selected. Check the user input for validity .After the user entered his or her guess (valid), the program should display the name of the randomly selected color. The p should repeat 10 times and then display the number of times the user correctly guesses t the program into methods that perform each major task. rogram he selected color. Be sure to modularize @Title: Purpose: To practice method calls LastNameFirstNameESP and loop structure. Author: Date: version:1.0 (your last first name) (today's date) 1- Be sure to divide the program into following methods that perform each major task. Note: Not following the provided methods will result in loss of points /Main method--> calls functions public static void main(String args)

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions