Checkout
checkout
view
Your Cart Your Cart: item(s)
Subjects -> Computer Science -> Other -> Posting #51594
Add to Shopping Cart
$2.19 Instant Download
Computer Science, Other
Year 3

Java Programming


Write a GUI Java program that plays a guessing game with the user.  The user will first enter a number between 1-10  OR letters between A-K (uppercase) and your program will generate a random number in the same range OR a letter to compare to the user's input, and declare whether you have matched each other or not.  The program must do the following:
1. Interact appropriately with the user using GUI messaging.
2. Error check all user input for out of range numbers, letters, or special characters.
3. The user must be able to enter at least  three wrong inputs before the program terminates.
4. If the user enters any lowercase letter  "a-e" the wrong input counter should reset. That is, if I have two wrong inputs but then enter a "b" on my next try, I should be allowed three more wrong inputs.
5. The user must be allowed to play until deciding to explicitly terminate the game (I would use an exit button on the GUI window).

This is what I have so far...

Attachments
exam1.java  View File

By OTA:  Govind Pal, MCom

OTA Rating:  4.7/5

Your Price:  $2.19  (original value ~$23.94)

What's included:

  • Plain text response
  • Attachment(s):
    • guess.java
$2.19 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download
Java Programming - Write a GUI program which incorporates a try-catch block to error check your input for integers and alphabetic characters other than Y or N. Your program must include two interactions. Each interaction will ask the user at least two questions, both of which require a yes/no response (Y or N). The program flow will depend on both user responses. Your program must include at minim...
Java Programming - Write a complete interactive Java GUI program(for example: javax.swing.JOptionPane;) NOT A APPLET that requests two numbers from the user. The first number is the row dimension and the second number is the column dimension. Print to the user a rectangle of stars based on the input. The program must do the following: 1. Print the rectangle of stars. 2. Error check for bad inp...
Java Programming - I/O: Reading & Writing - Most stream I/O uses sequential access methods, but it is possible to use stream I/O for random access. The RandomAccessFile class in java.io implements random access files. Write a simple program to demonstrate using stream I/O for random access.
Java Programming - Access the monster.java program. Compile and run the program. There are ten lines of code marked (1)..(10) that you must explain after analyzing the code, running the program, and examining the output. Submit your work with an explanation of each of the lines of code (1..10), that is, what the code does logically and what it does in the program.
Database Concept - What are the main components when designing an ERD?

Page generated in 0.0508 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples