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

1 Expert Approved Answer
Step: 1 Unlock

Here is a sample Python program that determines if the user can ride ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!