Write a C# program that handles people entering an Amusement Park through the main gate.
Make a loop to sell people tickets to your amusement park. You can use a counter controlled loop (asking the user how many people they are selling tickets to) or a sentinel controlled loop. It is up to you but have this program handle multiple ticket sales and tell the price of each ticket one by one by the loop. (8 points)
For each customer purchasing a ticket, ask for the age of the customer and use IF statements and structures to determine the price of the ticket. Also ask if the user has a “Fast Pass” as well and store the answer in another variable.
A customer is Over 65, Under 12, or has a Season Pass (age doesn’t matter). A ticket for the day for each of these types of customer is below:
Comments
Leave a comment