A program that tests the users ability to memorize

Assignment Help C/C++ Programming
Reference no: EM13842181

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.

Reference no: EM13842181

Questions Cloud

Prepare a government-wide statement of net assets : Prepare a government-wide statement of net assets.Be sure to show the transportation authority as business-type activity. If the township were to prepare fund statements,how would it report the housing authority's specialrevenue fund?
What is the firms corporate cost of capital : What is the firm's cost of equity estimate according to the DCF method and what is the cost of equity estimate according to the CAPM - What is the firms corporate cost of capital?
Declare a global array solution : Declare a global array Solution
Report both the debt and the golf course in same category : Should the city, in its government-wide statement of net position, report the debt as a governmental activity and the golf course as a business-type activity? Alternatively, should it report both the debt and the golf course in the same category o..
A program that tests the users ability to memorize : a program that tests the user's ability to memorize a sequence of colors
What is the effect of attending a peer nutrition : What is the effect of attending a peer nutrition counseling program on college students' knowledge of healthy food three months later
An application that instantiates five librarybook object : Write an application that instantiates five LibraryBook objects
What is the return for stock d : What is the dollar amount invested in stock B if the beta of the portfolio is 1.2 - The portfolio has a return of 19.8 percent. The return for Stock A is 6.5 percent, for Stock B is 33.2 percent, and for Stock C is 7.2 percent. What is the return f..
Use either the bubble sort or the selection sort algorithms : use either the Bubble Sort or the Selection Sort algorithms

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a class called point3d

Create a class called Point3D to represent 3D point in space, a class called Sphere and a class called Cylinder. The sphere is characterized by its center point and the radius while the Cylinder can be characterized by its center point, radius and he..

  Create a calling module name and parameters

Create a calling module name and parameters for the following. (Remember that the asterisk before the parameter name indicates a call-by-reference parameter.

  Lab9 c if you can start with attachments file first get

if you can start with attachments file first get that part then start with the lab 9 ltbrgtcmpet301lab9

  Downloading movies, and completing schoolwork

Allison spends a lot of time socializing with friends on Facebook, downloading movies, and completing schoolwork. But her older computer needs to be replaced because the latest operating system cannot be installed on her older machine without signifi..

  Program of public class tempconverter

There are numerous opportunities for errors in any program, many times in places that seem too simple to require close attention.

  Principle ofsuperposition to determine that system is linear

Apply the principle of superposition to determine whether the following systems are linear. Sketch what the plot of the function looks like.

  Program calculates and displays salesperson''s commission

The sales manager at Tompkins Company wants a program that calculates and displays each salesperson's commission, which is 10% of his or her sales. It also should display the total commission. Use a value-returning function to get the amount sold by ..

  Give students practice in writing and calling their function

To give students practice in writing and calling their own functions. To give students practice in implementing and planning complex programs.

  A website for a popular international music store

Imagine that you are building a Website for a popular international music store. The owner wants to play an audio clip featuring the musical instrument of the month on their home page. Determine how you would add audio to the page so that it is compa..

  Define a class named creditcardpayment

Create a main method that creates at least two CashPayment and two CreditCardPayment objects with different values and calls payment Details for each.

  Write a function named sort3

Write a function named "sort3" that takes three floating point arguments, call them "x" , "y" , and "z" , and modifies their values, if necessary, in such a way as to make true the following inequalities: x y z .

  Write a recursive method to print all the permutations

Write a recursive method to print all the permutations of a string.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd