A program that tests the users ability to memorize a


Grading Information:

Comments are REQUIRED; flow charts and Pseudocode are NOT REQUIRED.

Directions Points

The files must be called .

Example: KenDeweyChapter17.java

Ensure you include ALL files required to make your program compile and run.

I would like to see your .java files only.

Proper coding conventions required the first letter of the class start with a capital letter and the first letter of each additional word start with a capital letter.

Follow proper java coding conventions throughout the program.

10%

Basic Requirements

Write a program that tests the user's ability to memorize a sequence of colors. As shown in the sample session, the program starts off by displaying a dialog box with a list of colors that are to be memorized - red, white, yellow, green, and blue. Theuser then enters the colors one at a time in a text box. If the user makes a mistake, the program prints a "Sorry" message. If the user correctly enters all  the colors, the program prints a "Congratulations" message. Note that when the sorry orcongratulations message is printed, the  window's original components get clearedaway.

As always, you are required to write elegant code. In particular, you should avoid hard coding the color values in the interior of your program. You should declare those values one time in an array at the top of the program.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: A program that tests the users ability to memorize a
Reference No:- TGS01122394

Now Priced at $35 (50% Discount)

Recommended (92%)

Rated (4.4/5)