Professional Documents
Culture Documents
Samuel Rogers Mcdaniels Samuelsons
Samuel Rogers Mcdaniels Samuelsons
Theater Revenue
Student Name: Section: Instructor: Jinhui Liu
Purpose
1. Practice how to recover gracefully from errors, using a technique known as Exception
handling (Try… Catch… End Try). In this application’s source code please include
the exception handler: if the user fail to enter numeric values, display an appropriate
error message and do not attempt to perform calculations.
2. Use four GroupBox controls to organize other controls inside them.
Assume the theater keeps 20% of its box office receipts. Use a named constant in your
code to represent this percentage. If the user fails to enter numeric values, display an
appropriate error message and do not attempt to perform calculations. Use the following
test data to determine if the application is calculating properly:
Ticket Sales
Price per Adult Ticket: $6.00
Adult Tickets Sold: 120
Price per Child Ticket: $4.00
Child Tickets Sold: 72
Revenue
Gross Adult Ticket Sales: $720.00
1
Gross Child Ticket Sales: $288.00
Total Gross Revenue: $1,008.00
Net Adult Ticket Sales: $144.00
Net Child Ticket Sales: $57.60
Total Net Revenue: $201.60
Lab Requirement
Read Textbook: Section 3.7 Exception Handling
Section 3.8 More GUI Details
Deliverables
You are required to submit your Visual Basic application’s form, source code, and
output electronically to Canvas. Please understand that it is easier for me to check you
work if I see the breakdown of the task. You must include the application’s GUI, the
2
source code, and then test your program with different inputs and show all your output.
Otherwise, it will be difficult for me to check whether your code works or not. If you fail
to show your work, points may be deducted.