Express how the program is to work

Assignment Help Computer Engineering
Reference no: EM1337195

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?"

Reference no: EM1337195

Questions Cloud

Information about capital market instruments : Describe and critically discuss the capital market instruments used in investment portfolio.
Estimating completion of task : Each of the tasks needs an estimate of how long it will take.
Explain elements of the marketing mix and marketing strategy : Explain Elements of the Marketing Mix and Marketing Strategy and Include a detailed overview of each element of the marketing mix
Assume that in a perfectly competitive market : Assume that, in a perfectly competitive market at the profit maximizing quantity, the market price is greater than average total cost.
Express how the program is to work : Write a GUI program which incorporates a try-catch block to error check the input for integers and alphabetic characters other than Y or N. Your program must include.
Payment of a fixed amount of money : The requirement that, to be negotiable, an instrument must promise or order payment of a fixed amount of money applies only to principal
Explain what are the four p''s : Explain what are the four p's that would be successful marketing handheld minicomputers to you executives
Illustrate what will sales be if the price : What is the equilibrium price and quantity. Illustrate what will sales be if the price is dropped to $20.
Explain marketing manager vs marketing analyst : Explain Marketing Manager Vs Marketing Analyst and Vision for the IT Service Company

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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