Create program that determines if the user can ride a rollercoaster. To ride the rollercoaster, you must
Fantastic news! We've Found the answer you've been seeking!
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 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"
Related Book For
Computer Systems A Programmers Perspective
ISBN: 9781292101767
3rd Global Edition
Authors: Randal E. Bryant, David R. O'Hallaron
Posted Date: