Question: 3. Height Check Write a Python program (HeightCheck py) that allows the user to enter the height (cm) of their car and displays the message
3. Height Check Write a Python program (HeightCheck py) that allows the user to enter the height (cm) of their car and displays the message "You can enter the parkade" if the value of the height is within the range of O through 230cm. (A similar program is shown on slides 20 and 21 of lecture 05) To the right are three test runs of the program a 1st run: the user entered 45.3, b. 2nd run: the user entered 230.2, C. 3rd run: the user entered 230. Enter the height (cm): 45.3 You can enter the parkade. >>> = RESTART: C:\Users\Rita\Gc pressions and Range Check I Enter the height (cm): 230.1 >>>> Note that nothing is displayed if the height is not within the limits - RESTART: C:\Users\Rita Gc pressions and Range Check\I Enter the height (cm): 230 You can anter the parkade. Test your own program with the input numbers shown at the right Do you get the same results? Save your IDLE Shell window as HeightTest.txt. Submit your source code file HeightCheck.py and HeightTest.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
