Question: Produce a Python ticketing app for 6 Flags Great America's upcoming season according to these specs. There are three ticket types for 6 Flags guests:
Produce a Python ticketing app for Flags Great America's upcoming season according to
these specs. There are three ticket types for Flags "guests": toddlers years old get in free.
Children pay $ "Adult" guests and up pay $ Additionally, the optional
Flash Pass at $ per ticket allows guests to board rides faster, join virtual queues, and place
mobile food orders.
Get the number of guests from the user, using an input validation loop to ensure the user
can only enter a number of guests between and see sample output next page
Once you have an appropriate number of guests, code a separate loop to run exactly that
many times ie one iteration for each guest Inside your loop, you will:
Prompt the user for the current guest's age see sample output next page
Use an ifelifelse to assess the ticket price for the current guest based on their age.
Display the ticket cost for the current guest, as well as the running total for all
tickets so far.
Once your loop is done, ask the user if they'd like to add the Flash Pass at $ per ticket.
Flash Pass costs will be computed according to the user's response. Assume Flash Pass is
all or nothing for the current party; meaning, either they get it for all tickets or none at all.
Lastly, display the user's itemized receipt. Use the sample output provided on the following
pages as your model.
Additional Considerations:
Emojis are optional. Some Six Flags type emojis are: roller coaster, lightning bolt,
admission tickets, fountain, genie, carousel horse, or a Ferris wheel. Feel free to
improvise emojis and have fun.
You may create any variables you need at any time in the program.
SAMPLE PROGRAM BEHAVIOR User input is highlighted yellow. Everything else is
output:
Welcome to Flags Great hmerica!
How many guests in your party? Maximum guests per party:
Number of guests must be between and Please reenter:
Number of guests must be between and Please reenter:
Enter age of guest :
Ticket cost for gueat years: $
Total cost for party: $
Enter age of guest :
Ticket cost for gueat years: $
Total cost for party: $
Enter age of guest :
Ticket cost for guest years: $
Total cost for party: $
Enter age of guest :
Ticket cost for guest years: $
Total coat for party: $
Would you like to add the benefits of Plash Pass for just $ per ticket?
:
ID YOUR RECEIPT II
Ticket costs gueats: $
Genie surcharge: $
TOIAL costs: $
Enjoy your stay at Flags, Enjoy the Ride!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
