Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I don't need help with the whole problem. I need help with Question #9 Part B Exercise 2: RiderHeight.py 1) Write an if-elif-else chain that

I don't need help with the whole problem.

I need help with Question #9 Part B

Exercise 2: RiderHeight.py

1) Write an if-elif-else chain that determines the amount of rides a person can ride based on their height.

2) If the person is less than 40 tall, print a message that there are 20 rides that they can ride.

3) If the person is greater than 40 tall but less or equal to 42 tall than, print a message that there are 28 rides that they can ride.

4) If the person is greater than 42 tall but less or equal to 48 tall than, print a message that there are 35 rides that they can ride.

5) If the person is greater than 48 tall but less or equal to 53 tall than, print a message that there are 36 rides that they can ride.

6) If the person is equal to or greater than 54 than, print a message that they can ride all of the rides.

7) Choose an arbitrary starting value for the variable height (this should be in inches).

8) Change the height variable value to the following numbers and run the program after each change

a) 35

b) 41

c) 45

d) 50

e) 55

I am stuck on part B) 54

9) What happens if you use the following numbers?

a) 40

b) 54

c) Fix the chain to accommodate these numbers and rerun the program to retest both.

d) Include the output of both tests after you fixed the chain.

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

Step: 3

blur-text-image

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

Discuss how selfesteem is developed.

Answered: 1 week ago