Save your files as ICS3U<UNIT2<PROGRAMS<U2A7_IdealWeight.
成果展示:
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
Sample Output Screen – Imperial Measurement
最先出自天才代写 java代写
合作:幽灵代写