当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

1527:10.2 BMI

题目描述

将下面的新构造方法加入到BMI类中:

  /** Construct a BMI with the specified name,age,weight,

   * feet and inches

*/

public BMI(String name, int age, double weight, double feet, double inches)
输入解释
输入name age weight feet inches
输出解释
输出这个人的BMI数及评判结果
输入样例
John che
18 145 5 10
输出样例
The BMI for John che is 20.81 normal weight
提示

seriously underweight

underweight

normal weight

over weight

seriously over weight

gravely over weight

该题目包含在题集 SSPU 中

题目来源 sspu

共提交 94 次

通过率 76.6%
时间上限 内存上限
1000 MS 128 MB