The program should have the following functions. The program should have the following functions. Getdata that prompts and returns their weight and height. Displayfitnessresults to display the bmi and relevant weight status message. Displayfitnessresults to display the bmi and relevant weight status message. 20 bmi or body mass index is a method of estimating a persons body fat levels based on a persons weight and height measurement.
Displayfitnessresults to display the bmi and relevant weight status message. The result is universally expressed in units of kgm2. Main function 5 you have to submit the program code and output. Getdata that prompts and returns their weight and height. The program should have the following functions. The bmi weight statuses and related values are listed in the above table.
Calcbmi to calculate the bmi. Well use it as the body of if name main by calling it. Assignment 2 total 70 question 1. A function that takes calculates the bmi and returns it. The bmi weight statuses and related values are listed in the above table. The program should have the following functions.
The bmi is defined as the body mass divided by the square of the body height and is universally expressed in units of kgm2 resulting from mass in kilograms and height in metres. Value indicating whether the person is underweight healthy overweight or obese. Getdata that prompts and returns their weight and height. Calcbmi to calculate the bmi. A function called main that contains all the code that will be executed. Main function 5 you have to submit the program code and output.
The bmi weight statuses and related values are listed in the above table. Getdata that prompts and returns their weight and height. Calcbmi to calculate the bmi. The bmi is calculated by dividing the persons body massweight in kilograms by the square of the body height in metres. Write a java program to compute body mass index bmi. A function that handles both weight and height.
A function that returns the weight status.