Question: Create program that determines if the user can ride a rollercoaster. To ride the rollercoaster, you must be at least 42 inches tall. You must
Create program that determines if the user can ride a rollercoaster.
To ride the rollercoaster, you must be at least 42 inches tall. You must also be at least 9 years old.
Ask the user how tall and how old they are. Use a nested if statement to determine if they can ride the rollercoaster.
If they can, print "Welcome aboard!"
If they cannot, print "Sorry, you are not eligible to ride"
Step by Step Solution
There are 3 Steps involved in it
Here is a sample Python program that determines if the user can ride ... View full answer
Get step-by-step solutions from verified subject matter experts
