Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pseudocode Write a program that tests your ESP ( extrasensory perception ) . Create a list of the seven names of colors. The program should

Pseudocode Write a program that tests your ESP (extrasensory perception). Create a list of the seven names of colors. The program should randomly select the name of a color from your list of words, for example:
Red, Green, Blue, Orange, Yellow
To select a word, 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.
Next, the program should ask the user to enter the color that the computer has selected. After the user has entered his or her guess, the program should display the name of the randomly selected color. The program should repeat these 11 times and then display the number of times the user correctly guessed the selected color.
Start your program that asks the user for his or her name, MC M#, and then asks the user to enter a sentence that describes him or herself and Due Date in a format MM/DD/YY.
Here is an example of the programs screen:
Enter your name: Julie Taylor [Enter]
Describe yourself: I am a computer science major, a member of the Jazz club, and I hope to work as a mobile app developer after I graduate. [Enter]
Once the user has entered the requested input, the program should display this information at the end of the program.
.
You are required to run the application from the command line and from an IDE (like Eclipse).
Input and validate the name of a color from user.
Take screenshots of two runs of your program with different inputs, one from the command line and one from your IDE.
You are not allowed to use arrays or ArrayLists in this program.
You are not allowed to use any methods except main() in this program.
Use java constants for number and String literals, for example:
final String COLOR_RED = "Red";
Java fundamentals,
Input from keyboard using Scanner,
decision structures (switch or if/else)
loops (while, do-while, or for).
Command-line processing.
Input Validation
Enter your name: Julie Taylor
Describe yourself: I am a computer science major, a member of the Jazz club, and I hope to work as a mobile app developer after I graduate.
Due Date: 06/19/23
CMSC203 Assignment1: Test your ESP skills!
Round 1
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
blue
I was thinking of Blue.
Round 2
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Yellow
I was thinking of Yellow.
Round 3
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
yellow
I was thinking of Yellow.
Round 4
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Black
You entered incorrect color. Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess again:
black
You entered incorrect color. Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess again:
orange
I was thinking of Blue.
Round 5
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Orange
I was thinking of Orange.
Round 6
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
blue
I was thinking of Red.
Round 7
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Blue
I was thinking of Yellow.
Round 8
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
red
I was thinking of Red.
Round 9
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
red
I was thinking of Orange.
Round 10
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Yellow
I was thinking of Yellow.
Round 11
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
blue
I was thinking of Orange.
Game Over
You guessed 6 out of 10 colors correctly.
Student Name: Julie Taylor
User Description: I am a computer science major, a member of the Jazz club, and I hope to work as a mobile app developer after I graduate.
Due Date: 06/19/23
Deliverables / Submissions and Deliverable format:
The Java application must compile and run correctly, otherwise the project grade will be zero.
The detailed grading rubric is provided in the assignment rubric excel file.
Your source code should contain proper indentation and documentation.
Documentation within a source code should include:
additional Comments to clarify a code, if needed
class description comments at the top of each program containing the course name, the project number, your name, the date, and platform/compiler that you used to develop the project, for example:
/*
* Class: CMSC203
* Instructor:
* Description: (Give a brief description for each Class)
* Due: MM/DD/YYYY
* Platform/compiler:

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

Students also viewed these Databases questions

Question

What is the role of the Joint Commission in health care?

Answered: 1 week ago