"body mass index"(bmi)是医生从病人的身高和体重就可以得知的一种测量方法.
bmi=(体重)weight*702/(身高)height)^2
weight= weoght in pounds
height=height in inches这个程序就是要计算出和显示出BMI来(从身高和体重)
这个程序要在不正确写入时提出警告,(像当数字写入时写成负数时,能提出提示)
程序要有一个from:(写入)input of the initial and surname of the patient
                       (写入病恩的简名和姓)
                       weight and height in eithi imperial units (pounds and inches) or (kilos                                                                    and centimetres)
                       (含单位的身高和体重,要不就pounds & inches,要不就kilos & centimetres)
                       要显示出计算出来的bmi,程序里包含bmi的计算公式.
要记录每个写进的DATA(数据),身高体重,姓名和计算出来的bmi
有例子去试查程序显示是否计算正确
当病人的bmi>30 就是 "onezweight"(过重) ;bmi<20就是不是"too thin"(过轻);程序里面写出一些警告句子来其他的就显示:he/she/ is healthy"(他/她很健康)接着就是去扩展程序,在第二个form . the input 可以从一个文件里读出和显示出来. the input 要在程序里面排列出来 .bmi(计算出来的新的)要在同一个from中显示出来,在新的一行一样的排列.
在第三个form里. 由所有的病人的资料画出一个bar chart(曲线图)
所有的form要有menu,包含option(选项)去显示文件在notepad(记事本)
单位换算: 1 pound weight =0.4536 kilos
          1 inches   = 2.54 centimetres
下面的data file 就是那个文件
bmi data file
6
S,Stallone,69,228
A,Schwarzenegger,74,257
M,Gibson,69,214
T,Cruise,67,201
P,Swayze,70,210
C,Jex,67,168