Create a simple artificial intelligence program


Assignment:

Create 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:

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:

Q1: "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).

Q2 Is based on first answer being Y.

Q2: "My favorite red wine is Shiraz. Is it yours?"

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):

Q1: "Do you have a favorite partial information zero sum game?"

Q2: "Is it a poker game?"

Q3: "Is it Texas Hold'em?" "Is the game War?"

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Create a simple artificial intelligence program
Reference No:- TGS01933821

Now Priced at $25 (50% Discount)

Recommended (99%)

Rated (4.3/5)