Answered step by step
Verified Expert Solution
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 the selected word is Red, if the number is 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 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 MMDDYY
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 COLORRED "Red";
Java fundamentals,
Input from keyboard using Scanner,
decision structures switch or ifelse
loops while dowhile, or for
Commandline 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:
CMSC Assignment: Test your ESP skills!
Round
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
blue
I was thinking of Blue.
Round
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Yellow
I was thinking of Yellow.
Round
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
yellow
I was thinking of Yellow.
Round
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
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Orange
I was thinking of Orange.
Round
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
blue
I was thinking of Red.
Round
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Blue
I was thinking of Yellow.
Round
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
red
I was thinking of Red.
Round
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
red
I was thinking of Orange.
Round
I am thinking of a color.
Is it Red, Green, Blue, Orange, or Yellow?
Enter your guess:
Yellow
I was thinking of Yellow.
Round
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 out of 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:
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 platformcompiler that you used to develop the project, for example:
Class: CMSC
Instructor:
Description: Give a brief description for each Class
Due: MMDDYYYY
Platformcompiler:
Step 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