Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java Q6: Write a program that tests your esp (extrasensory perception). The program should randomly select the name of a color from the following

image text in transcribed

In java

Q6: Write a program that tests your esp (extrasensory perception). The program should randomly select the name of a color from the following list of words: red, green, blue, orange, yellow To select a select a word, the program can generate a random number. For example, if the number is 0 , the selected word is red. Next the program should ask the user to enter a color that the computer has selected. After the user entered his or her guess, the program should display the name of the randomly selected color. The program should repeat 10 times and the display the number of times the user correctly guesses the selected color. Be sure to modularize the program into methods that perform each major task

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions