Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(use python)A particular zoo determines the price of admission based on the age of the guest. Age Range Cost Guests 2 years of age and
(use python)A particular zoo determines the price of admission based on the age of the guest.
Age Range | Cost |
Guests 2 years of age and less | admitted without charge. |
Children between 3 and 12 years of age | cost $14.00 |
Seniors aged 65 years and over | cost $18.00 |
Admission for all other guests is | $23.00. |
Create a program that begins by reading the ages of all of the guests in a group from the user, with one age entered on each line. The user will enter -1 to indicate that there are no more guests in the group. Then your program should display the admission cost for the group with an appropriate message. The cost should be displayed using two decimal places
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started