Results 1 to 6 of 6
- 03-16-2010, 07:28 AM #1
Member
- Join Date
- Mar 2010
- Posts
- 4
- Rep Power
- 0
Write a graphical user interface (GUI) application to be used to test Kindergarten ch
The application will ask questions like:
What comes after D?
A child is expected to answer the question and the application will inform the child if the answer is correct or wrong. The application will ask a total of 20 questions. After all 20 questions have been answered, the application will display a score (from 0 to 20) to inform the child how many questions he or she answered correctly. The application will also list all the letters that were asked.
The letters tested are from ‘A’ up to ‘Y’. Do not include the letter ‘Z’. The letters are selected randomly. No letters are to be repeated, that is, each letter is only asked once in the 20 questions.
Note: The java.util.Random class can be used to generate random numbers. For example, the following statements may be used to generate a random number from 0 to 4 inclusive:
Random generator = new Random();
int number = generator.nextInt(5);
-
Thanks for posting your homework assignment in the forum. I'm sure that I speak for all when I wish you much luck with it. Please let us know if your submission is successful and please do come back with your best attempt and a specific question if you run into any problems.
- 03-20-2010, 05:46 AM #3
Member
- Join Date
- Mar 2010
- Posts
- 4
- Rep Power
- 0
gui and java
but i dun have any idea to start coding .can guide me ?
- 03-20-2010, 10:12 AM #4
Senior Member
- Join Date
- Mar 2010
- Posts
- 953
- Rep Power
- 4
Certainly by now you have seen some Java programs. You probably have some in your textbook or other materials that work similarly to the program you want to write.
Sometimes it's good to think in terms of Input, Output, Storage, and Computation (since these are the four basic things a computer can do).
What kind of Input do I need to get? Where will I get it from? How?
What kind of Output will I be generating? How will I present it to the user?
What kind of data does my program need to store? How will I structure that data? What names will I give to my data structures?
How will my program act on the data it needs to receive and store? What methods do I need to write?
Once you have answered those questions, you can start working on some little piece of the problem. It doesn't really matter where you start, but when you're learning a language, it often helps to start with Input and Output, since you can at least see what is going on. Storage and Computation tend to be a little more abstract.
Think about those things, and see if that helps you get started. Please do come back and show us what you've got so far. (Remember to use CODE tags when you post your code.)
-Gary-
- 03-29-2010, 03:00 PM #5
Member
- Join Date
- Mar 2010
- Posts
- 4
- Rep Power
- 0
gui application to test kindergarden character
i have some error when test this code ,that is the question request that one alphabet exist one time only during 20 question .but mine de got repeated alphabet ,how 2 solve it ? code as below
- 04-09-2010, 11:36 AM #6
Similar Threads
-
Multiple views on user interface application
By dand_dd in forum SWT / JFaceReplies: 36Last Post: 04-24-2009, 09:05 AM -
User Interface
By swikar.java in forum Advanced JavaReplies: 16Last Post: 12-09-2008, 02:37 PM -
How to write a Main to test this...
By Zombie_Leg! in forum New To JavaReplies: 9Last Post: 09-27-2008, 02:30 PM -
user interface development using JSP
By pradeep1_mca@yahoo.com in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 06-02-2008, 01:48 PM -
Help user interface
By carl in forum New To JavaReplies: 1Last Post: 07-31-2007, 07:58 PM


LinkBack URL
About LinkBacks


Bookmarks