Homework #3

Homework #3 - Concert Ticket Sales

Submit Assignment Download Runtime

Task:

  • End user will select a section for theatre and the number of tickets to purchase. When they click purchase, what they purchased will be shown as well as the total cost. A summary of all tickets sold will be kept track of and updated after each purchase. There are 5 sections:

    • Orchestra tickets are $75 each
    • Main Floor tickets are $45 each
    • Loge tickets are $65 each
    • Lower balcony tickets are $45 each
    • Upper balcony tickets are $35 each

    For Full Credit:

    • Program must be well documented and controls well named according to standards.
    • Your program MUST contain two arrays. One for the prices of each section, one to maintain the quantity of each ticket sold.
    • Your program MUST contain a subroutine to display the ticket summary.
      • A loop is required to display the output.
    • All currency fields MUST be displayed as currency $x.xx.
    • Clicking Purchase MUST
      • Validate section
      • Validate tickets as numeric
      • Display what was purchased (Purchased x ticket(s) at $x.xx per ticket)
      • Display total due
      • Display summary of tickets sold and the totals for each section.