- The admission button, method stubs, and properties provide the structure required for a booth visit.


The sequence starts with the click event for the admitGuestButton.

If so, store the first item in a variable, remove the item from the list, and then return the item.
4.1.9 How to Remove an Item from a ListStep through the code to ensure each method is called correctly. Check for the following results:
Ensure that a null reference occurs when trying to admit the sixth guest.
It will be necessary to delete the local variable tickets to use the ticket objects returned from the call to the SellTicket method.
Ensure that a null reference exception is generated in the AddGuest method due to there being no tickets remaining.
If so, find a ticket.
If it does, add the payment to the booth's money balance.
Step through the code to ensure each method is called correctly. Check for these results:

The GiveFreeMap and GiveFreeCouponBook are also similar but do not check for payment because no payment is required.
Step through the code to ensure each method is called correctly. Check for these results:
© 2026 Northcentral Technical College