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

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 minimum an OK and Exit button. You cannot have a Yes/No button as the user must be able to type Y or N in the GUI. See the document below for more information:

I will explain how the program is to work. The idea is to create a simple artificial intelligence program.
1. Must be a GUI
2. Must employ at minimum one try-catch block.
3. Must include two distinct interactions with at least two questions each.
4. Must include a OK, Exit (and optional a Continue button)
Example of Interaction #1:
Your Program Asks the User:
Q#1: "Do you like red wine?"     User answers Y or N (if anything other is entered like "A" or -99 your program needs to catch it and reply with the appropriate error message to the user and allow the interaction to continue).
Q#2 is based on first answer being Y. If it was N you would need to ask a different question.
Q#2: "My favorite red wine is Shiraz. Is it yours?"     User answers   Y or N
You need at least two questions per interaction (if you want to make your code more intelligent you can). Your program at this point should ask the user if they wish to continue with a new interaction or simply have a continue button.
Example of Interaction #2 (with more than two questions):
Q#1: "Do you have a favorite partial information zero sum game?"   User Answers   Y
Q#2: "Is it a poker game?"   User Answers Y
Q#3: Is it Texas Hold'em?"  User Answers Y or N
If the answer to Q#2 is N your program might respond with: "Is the game War?"

By OTA:  Rashmi Gupta, MCA

OTA Rating:  4.5/5

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

What's included:

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

Add to Shopping Cart
$2.19 Instant Download
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 - 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.
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 w...
PERL Programming - 1. Physicists tell us that the lowest possible temperature is absolute zero. Absolute zero is -459.69 degrees Fahrenheit. a. Accept inputs from the user: a beginning temperature, an ending temperature, and an increment value (all Fahrenheit). b. Check for bad input: a temperature less than absolute zero and an ending temperature less than a beginning temperature. The pro...
Java Programming - You have already written the code for the four loop problems which you will now combine into one program with four distinct methods. For this assignment you will write methods, two value returning methods and two void methods. You may choose which of the four problems are coded into which method. Each method must represent one of the 4 distinct loop problems. The methods must i...

Page generated in 0.0437 seconds

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

©2008 SolutionLibrary.com

Search for Solutions About Us Samples