PRJ302_-_PE_-_SU_2025_-_Block_1_4009.webp
C

PRJ302_-_PE_-_SU_2025_-_Block_1_4009.webp

Zoom
a. Check input for height and weight: If user input the height/weight that are integers <10, show
the error text "Height/Weight must be an integer >=10". (1.0 point)
When input height and weight
Enter height: 9
Enter weight: 9
BMI
Body Mass Index (BMI):
Height Weight BMI Conclude
After pressing the "BMI" button
cm
Enter height: 9
kg
Enter weight: 9
cm
kg
BMI Height/Weight must be an integer>-10
Body Mass Index (BMI):
Height Weight BMI Conclude
Otherwise, make the request b.
Figure 2. Check input
b. BMI calculation and conclude (as below), then add the result to table as shown below. (1.5
point)
- BMI weight/((height/100)^2)
- Conclude:
BMI<18.5: Underweight
18.5<-BMI 25: Normal
25<-BMI 30: Slightly overweight
BMI≥30: Obese
When input height and weight
Enter height: 162
Enter weight: 69
BMI
After pressing the "BMI" button
cm
Enter height: 162
kg
Enter weight: 69
BMI
Body Mass Index (BMI):
Height Weight BMI Conclude
175 70
23.0 Normal
Body Mass Index (BMI):
Height Weight BMI Conclude
175 70 23.0 Normal
162 69 34.0 Obese
+ 85%
Figure 3. Press the button
cm
kg
Close
Chưa có bình luận nào.

Thông tin

Category
PRJ302
Thêm bởi
cristiano minhnaldo
Ngày thêm
Lượt xem
982
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom