Question: QUESTION ONE 3 + 2 + 3 + 5 + 3 + 2 + 3 + 5 + 2 + 2 i ) Write a

QUESTION ONE 3+2+3+5+3+2+3+5+2+2
i) Write a function that asks the user for their name and age and display it on the page with the results.
ii) Create a function definition ) that will: -
a) Get the height of the user in feet and inches and get the user's weight in pounds (Ibs) whenever the user selects the Standard button
b) convert the values received in a) into floating point values.
c) Convert the value of feet and inches into ONLY inches NOTE: I foot =12 inches
d) Calculate the bmi based on the measurement format that is selected and store the results (to 1 digit of precision) in the BMI variable. The Standard formula for BMI is
Standard
e) Get the height of the user in centimeters and get the user's weight in kilograms whenever the user selects the Metric button.
f) convert the values received in e) into floating point values.
g) Convert the height received from centimeters to meters, NOTE 1 metre =100cm
h) Calculate the bmi based on the measurement format that is selected and store the results (to 1 digit of precision) in the BMI variable. To calculate the BMI in Metric use the following formula:
Metric
i) Store the Display the BMI to 1 digit of precision in the 'bmiVal' field.
j) Call the function WeightStatus defined in question two.
 QUESTION ONE 3+2+3+5+3+2+3+5+2+2 i) Write a function that asks the user

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!