Write a program that test 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 guess the selected color. be sure to modularize the program into methods that perform each major task.
Breaking it down
Output
Unit tests
Level Up
Adjust program to allow user to play as many times desired