案例java编程 | Ideal Weight Calculator | 重量计算器
当前位置:以往案例 > >案例java编程 | Ideal Weight Calculator | 重量计算器
2020-01-21

案例java编程 Create an Ideal Weight application that accepts input for:

Save your files as ICS3U

成果展示:

Programming Question

Ideal Weight Calculator

Create an Ideal Weight application that accepts input for:





A person’sname
A person’sheight
The system of measurement they wish to use (metric orimperial).


The program will use the person’s height to calculate his/her ideal healthy weight using a formula produced from the formula for body mass index (BMI) . The BMI is a statistical measurement which compares a person’s weight and height.



Though it does not actually measure the percentage of body fat, it is a useful tool to estimate a healthy body weight based on a person’s height. According to the BMI, a value of 18.5 to 25 is considered healthy.



In this program, allow the user to use either the imperial measurements or metric to calculate a healthy weight.



Metric:Weight (kg) = height (metres) × height (metres) × 25
Imperial: Weight (pounds) = height (inches) × height (inches) × 25 ÷ 703

Sample Output Screen – Metric Measurement

案例java编程案例java编程

Sample Output Screen – Imperial Measurement

案例java编程案例java编程案例java编程案例java编程



在线提交订单