Question: In [2]: In [43]: Problem 1 (1 point. Enter your answer to this, and all other questions, in Childsmath) m By experimenting, find the

In [2]: In [43]: Problem 1 (1 point. Enter your answer to

In [2]: In [43]: Problem 1 (1 point. Enter your answer to this, and all other questions, in Childsmath) m By experimenting, find the INTEGER value of a so that BMI = a. when used with pounds and inches, gives the correct BMI (*when the BMI is rounded h to two decimal places*). Note: you should be able to explain how to arrive at the value of a without guessing (hint: look at homework assignment 6, question 5; so, it has to do with the conversion of units). #calculating BMI in kg and m m = 72 h = 1.71 BMI = m/h**2 print("Using kilograms and metres we obtain the correct BMI of", BMI) # calculating BMI in Lb and in mLB = m*2.205 hINCH = h*39.37 BMIinLBINCH = mLB/hINCH**2 print("Substituting pounds and inches into BMI=m/h^2 gives", BMIinLBINCH, "which is obviously not correct") a_actual BMI/BMIinLBINCH print(a_actual) #modifying BMI formula for Lb and in a = # experiment with different integer values of a; enter a single value for a BMI = a mLB/hINCH**2 print("With a=",a,"the modified formula for BMI gives", BMI) File "/tmp/ipykernel_70/255985942.py", line 15 a = SyntaxError: invalid syntax Now that you guessed the value of a in the code above, try to combine the conversion factors 2.205 and 39.37 using mathematical operations (as shown in Lab 0) to obtain the same (or approximately same) value of a. # Experiment with the conversion factors; enter different combinations. a = # You will get an ERROR MESSAGE if you run this cell without entering anything for a print (a) # Does this make sense? why? File a = "/tmp/ipykernel_117/1943019842.py", line 3 # You will get an ERROR MESSAGE if you run this cell without entering anything for a ^

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!