Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python Write a program that computes the price of a ticket for the Monterey Bay Aquarium. ADMISSION Adult $49.95 Child $29.95 (Ages 3-12, under

image text in transcribedUse Python

Write a program that computes the price of a ticket for the Monterey Bay Aquarium. ADMISSION Adult $49.95 Child $29.95 (Ages 3-12, under 3 free) Senior $39.95 (Ages 65+) Student $39.95 (Ages 13-17 or college ID) Your program first asks the age of the person. Then, your program should ask for a College ID only if the person falls into the adult category and store the result in a Boolean variable. At this point you can determine the ticket price and print it out using the word "FREE" when the ticket is free. Here are two transcripts of how the program should work: Enter age:1 Price: FREE Enter age:34 College ID? (y)y Price: $39.95

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions