Cash-back offer from April 14th to 21st, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 25.00

Program Chapter 17 | Complete Solution

Question posted by
Online Tutor Profile
request

Program Chapter 17


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. The user 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 or congratulations message is printed, the window’s original components get cleared away.
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.


Note:
Your program should contain a class named YourNameChapter7.
Use a simple FlowLayout layout manager scheme.
Use an inner class for the listener.
As always:
Limit your use of class variables and instance variables – use them only if
90%
appropriate.
Use appropriate modifiers for your methods. The modifiers we’ve discussed are private, public, static, and final.
Use helping methods if appropriate.Mimic the sample session precisely. In particular, note the dialog box’s text,
the window’s title, and the window’s text.


First sample session:
The opening dialog box:
After closing the dialog box, here’s the main window:
After typing the first color:
After pressing enter and then typing the second color:
After entering all five colors correctly:
If any color is entered incorrectly.
You can get full credit for completing this section only.


Extra Credit
Provide a hint button that causes the current color’s first letter to appear in the text
box. For example, since the first color is red, the first hint should be r. The hint button must cause focus to be put on the text box (i.e., the cursor should appear within the text box without the user having to click there with the mouse). To cause focus to be put on a component, use the requestFocusInWindow method. See Sun’s API documentation for requestFocusInWindow details.
Sample session:
(+10%)
After closing the dialog box, here’s the main window:
After clicking the hint button:
All other functionality is the same.
Upload your page to the Dropbox.
NOTE: Complete your activity and submit it to the Dropbox.
Total Points 100%

Available Answer
$ 25.00

[Solved] Program Chapter 17 | Complete Solution

  • This Solution has been Purchased 1 time
  • Submitted On 28 Feb, 2015 11:47:06
Answer posted by
Online Tutor Profile
solution

This Tutorial is rated A+ p...

Buy now to view the complete solution
Other Similar Questions
User Profile
termp...

TrainingProgram.docx HIMA620 Training Program Components American Public University HI

TrainingProgram.docx HIMA620 Training Program Components American Public University HIMA620: Corporate Compliance in the Healthcare Industry Training Program Components Every organization needs to implement a strong tra...
User Profile
Brain...

Program Capstone front-line supervisor to be one of the firm's senior managers

Decision making of a senior manager must always consider the vision, mission, goals, ethics and objective of the company. Manager’s decision must fall within the vision, mission, goals, ethics and objective of the company (...
User Profile
Acade...

Select two calculation tasks that a program could perform

Select two calculation tasks that a program could perform that could be used by a small business. Each task must include the following: Inputting a value Performing a calculation on that value Outputting the value Example ...
User Profile
Acade...

Select two tasks a program could perform Solution

Select two tasks a program could perform that would be useful to a small business. Each task must include the following: A conditional step Some form of iteration Example tasks include the following: Entering a number of item...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35