Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment

Create a Ticket Purchase application.

• Create this program as a Windows Forms Application with multiple forms.

• The first form will be a login form. It will accept a username and password. It will then compare these values to a username/password combination that exists in a text file. If it finds a match it will open the next form and close itself.

• The second form (referred to as the Manager Form below) would display the user's name and allow them select a type of event (include at least 3 types [sporting, music, speaking engagement]. It should also include a list of all the tickets the user has purchased this session (referred to as Ticket List below)

o OPTIONAL and a list of all the tickets the user has purchased in previous sessions (referred to as History List below).

• OPTIONAL: The History List will be populated from information in a file (referred to as the History File below) and only show information for this user.

• When a user clicks a button like "Choose Options" the user will be directed to one of three forms (one form per event type). When the user clicks a button like "Purchase" on those forms, their choice will be sent back to the Manager Form.

• The Ticket List should be updated with each ticket's information.

• When the user clicks a button like "Confirm All Purchases" on the Manager Form, the contents of the Ticket List should be saved to the History File including all information about the event and price and the user who made the purchase.

• Create a base Event class and three classes that inherit from it to represent the three event choices above. There should be at least 3 attributes of the event class that are common to all derived classes and at least 2 attributes specific to each derived type.

• Each event type should have a CalculatePrice method but each should use its own implementation using all attributes (polymorphism). These do NOT have to be as complicated as the sandwich calculation for Assignment 3. They must be different from each other but do not need to take every attribute into account during calculation. For instance, once event could just use a date attribute to calculate price while another could have a standard price across all dates but add a small change based on whether the user wants lawn seats (controlled via checkbox).

• Create a form for each event type as mentioned above. The form should include a header displaying the user's name and event type chosen.

• On each event form display controls to allow the user to select attributes for their event. Each control should be a different type (i.e. one textbox, one checkbox, one list box etc.) Pre-filled controls (like a list box) should be filled from data in a static method in the class.

• Each form should have a calculate price button that creates an instance of the class, fills the attributes from data provided and displays the ticket price.

• Each form should have a Purchase button that returns data to the Manager Form as described above

• Each form should have proper error handling to catch any incorrect values entered in the user controls.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92721334

Have any Question?


Related Questions in Computer Engineering

An oil company determines it costs 25000 to sink a test

An oil company determines it costs $25,000 to sink a test well, an oil hit yields a net revenue of $475,000($500,000 gross-$25,000costs), and a natural gas hit yields $125,000 net revenue ($150,000 gross-$25,000 costs). ...

How to response to those 3 following questionsrational

How to response to those 3 following questions Rational Agent ( Artificiall intellegence) 1. There can be more than one agent program that implements a given agent function. (If you agree, provide an example; otherwise a ...

Software engineeringanswer each of the following questions

Software Engineering Answer each of the following questions posed for control and data when applied a "stepwise refinement approach" to develop three different levels of procedural abstraction in a simple invoicing syste ...

Select a failed software project and run a postmortem

Select a failed software project and run a postmortem analysis on it. You may choose one discussed in class or research one yourself. In your analysis, identify the following: What was the purpose of the software? How di ...

Please respondexplain the properties and characteristics of

PLEASE RESPOND Explain the properties and characteristics of Transmission Control Protocol/Internet Protocol (TCP/IP).

We might consider a regression of the number of group

We might consider a regression of the number of group members and the efficiency of project completion. Which of those would be the dependent and which would be the independent variables?

Question 1 explain the various types of green architecture

Question: 1. Explain the various types of Green architecture within the enterprise, such as information architecture and solutions architecture. 2. Explain how a Green systems architecture evolves from a basic to a linea ...

Question need to discuss on issues and security

Question: Need to discuss on issues and security vulnerabilities caused by using 4 digit pin while accessing Banking. 1) Abstract 2) Acknowledgement 3) List of Abbreviations 4) Table of contents 5) List of tables 6) List ...

Question you are shopping for a new computer you will be

Question: You are shopping for a new computer. You will be using the computer for everything you do, such as school, socializing, gaming, and communicating. Your total budget before tax is $1,000.00. Considerations: • Bu ...

The ages of commercial aircraft are normally distributed

The ages of commercial aircraft are normally distributed with a mean of 13.5 years and a standard deviation of 8.3821 years. What percentage of individual aircraft have ages between 10 years and 16 years? Assume thata ra ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As