Question: PLEASE WRITE CODE TO RUN IN FHLA VERSION 1 . 7 5 PROGRAM 1 0 : Body Mass Index The Body Mass Index value is

PLEASE WRITE CODE TO RUN IN FHLA VERSION 1.75
PROGRAM 10: Body Mass Index
The Body Mass Index value is a screening tool that can indicate a person's body size and risk of developing certain diseases, such as heart disease and type 2 diabetes. It is not diagnostic of
body fatness or health, and other factors like genetics, activity level, and mental health also affect a person's overall health. A healthy BMI is generally considered to be between 18.5 and 24.9
Using floating point instructions and the FPU, prompt the user for a height (in inches) and a weight (in pounds) and then calculate their BMI using the below:
Write an HLA Assembly language program that computes BMI based on a height (in inches) and a weight (in pounds). Your main program should prompt for the values height and weight, each
which are to be real32 values, and then call a function with the following signature:
procedure bmi( height: real32; weight : real32); @nodisplay; @noframe;
A sample program dialogue is shown below.
Lemme calculate your BMI!
Gimme height: 72
Gimme weight: 167
BMI =22.6
Lemme calculate your BMI!
Gimme height: 60.5
Gimme weight: 120.1
BMI =23.1
PLEASE WRITE CODE TO RUN IN FHLA VERSION 1 . 7 5

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 Programming Questions!