C++,输入体重,身高,算bmi

C++,输入体重,身高,算bmi

题目
C++,输入体重,身高,算bmi
1.Ask for the user for his first name.输入你的姓名
x09x09x09x09
x09x09x09x09
x09x09x09x09x09
2.Ask the user whether he wants to use metric or standard system.选择哪种方式来计算
x09x09x09x09
x09x09x09x09
x09x09x09x09x09
3.Based on the choice of the system,prompt to ask weight and height.Use the answer
x09x09x09x09x09
and the appropriate formula to calculate the user’s bmi.根据选择的方式输入体重和身高(磅和英尺,或千克和米)
x09x09x09
x09x09x09x09
x09x09x09x09x09
4.Prints out to the user (addressed with his name) what his BMI is.输出,用户的姓名和bmi的值
x09x09x09x09
x09x09x09x09
x09x09x09x09x09
5.Prints out which category of weight he belongs to depending on his BMI.输出,用户的姓名,和更具bmi的值用户的体重属于哪一类的.
BMI = weight (kg) /( (height (m))(height(m))
BMI = weight (lb) / ((height (in)(height(in))*703
x09x09x09
Underweight if BMI < 18.5
Normal if 18.5 ≤ BMI < 25.0
x09x09x09
Overweight if 25.0 ≤ BMI < 30.0
Obese if 30.0 ≤ BMI <
答案
#include <iostream>#include <string>#include <stdlib.h>using namespace std;class person {//新建人物类public:    person();...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点

超级试练试题库

© 2017-2019 超级试练试题库,All Rights Reserved.