Write a program that plays a guessing game with its user. The program chooses one of five colors at random and allows the player three turns to guess the color. Display messages to the player as...


Write a program that plays a guessing game with its user. The program chooses one of five colors at random and allows the player three turns to guess the color. Display messages to the player as appropriate. Define the class ColorChooser that has a constructor and a method getRandomColor. This method returns one of five colors at random as a string. This color is the one the user must guess. Define another class that plays the game.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here