精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • C++,輸入體重,身高,算bmi

    C++,輸入體重,身高,算bmi
    1.Ask for the user for his first name.輸入你的姓名
    \x09\x09\x09\x09
    \x09\x09\x09\x09
    \x09\x09\x09\x09\x09
    2.Ask the user whether he wants to use metric or standard system.選擇哪種方式來計(jì)算
    \x09\x09\x09\x09
    \x09\x09\x09\x09
    \x09\x09\x09\x09\x09
    3.Based on the choice of the system,prompt to ask weight and height.Use the answer
    \x09\x09\x09\x09\x09
    and the appropriate formula to calculate the user’s bmi.根據(jù)選擇的方式輸入體重和身高(磅和英尺,或千克和米)
    \x09\x09\x09
    \x09\x09\x09\x09
    \x09\x09\x09\x09\x09
    4.Prints out to the user (addressed with his name) what his BMI is.輸出,用戶的姓名和bmi的值
    \x09\x09\x09\x09
    \x09\x09\x09\x09
    \x09\x09\x09\x09\x09
    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
    \x09\x09\x09
    Underweight if BMI < 18.5
    Normal if 18.5 ≤ BMI < 25.0
    \x09\x09\x09
    Overweight if 25.0 ≤ BMI < 30.0
    Obese if 30.0 ≤ BMI
    \x09\x09
    Here are two sample output
    \x09\x09\x09
    v:\cmpsc101
    Type your first name (with no space):
    Michael
    Type metric for metric system,type standard for standard system:
    standard
    Type in your weight in pound and your height in inch:
    180
    70.5
    Michael,your BMI is 25.4595
    Michael,you are considered to be Overweight.
    \x09\x09\x09
    v:\cmpsc101
    Type your first name (with no space):
    John
    Type metric for metric system,type standard for standard system:
    metric
    Type in your weight in kilogram and your height in meter:
    25
    1
    John,your BMI is 25
    John,you are considered to be Overweight.
    \x09\x09\x09
    v:\cmpsc101
    Type your first name (with no space):
    Dora
    Type metric for metric system,type standard for standard system:
    unknown
    Type in your weight in pound and your height in inch:
    100
    65.2
    Dora,your BMI is 16.5371
    Dora,you are considered to be Underweight.
    誰(shuí)知道這個(gè)c++的code要怎么寫,code中需要用到system和category.
    其他人氣:230 ℃時(shí)間:2020-09-11 21:02:39
    優(yōu)質(zhì)解答
    #include <iostream>#include <string>#include <stdlib.h>using namespace std;class person {//新建人物類public:    person();...
    我來回答
    類似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁(yè)提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版