Question: How do I fix my error? In [1]: heightl=input(What is the height of parent 1?) heightl=float(heighti) height2=input(What is the height of parent 2?) height2=float(height2) What

 How do I fix my error? In [1]: heightl=input("What is theheight of parent 1?") heightl=float(heighti) height2=input("What is the height of parent 2?")

How do I fix my error?

In [1]: heightl=input("What is the height of parent 1?") heightl=float(heighti) height2=input("What is the height of parent 2?") height2=float(height2) What is the height of parent 1?160 What is the height of parent 2?190 In [2]: faverageheight=(height1+height2)/2 print(averageheight) higherrange=averageheight+15 lowerrange=avergaeheight-15 175.0 NameError Traceback (most recent call last) in 2 print (averageheight) 3 higherrange=averageheight+15 ----> 4 lowerrange=avergaeheight-15 NameError: name 'avergaeheight' is not defined It is believed that most people's height falls in the range below: (Average height of the parents 15 cm , Average height of the parents + 15 cm). In other words if the average height of someone's parents is 175 cm, the children height will fall in the range of (175+15, 175-15)=(160,190). That means their height will very likely be in the range of 160 cm and 190 cm. Write a program that asks for a person's father's height in centimeters, mother's height in centimeters, calculates their average, and predicts the range of height for the user based on the formula above. The program should print: Your height is between ...... and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!