Assignment 3
Assignment 3
Name _______________________________
Reg # _______________________________
Discipline _______________________________
Section _______________________________
Program 5:BMI is used to broadly define different weight groups in adults 20 years old or
older. The same groups apply to both men and women. The formula is BMI = kg/m2 where kg is
a person’s weight in kilograms and m2 is their height in meters squared. You have to take input
of height and weight, calculate BMI and Display Message Underweight, normal weight, over
weight and obese using following. Underweight: BMI is less than 18.5
BMI Value Description
18.5 – 24.9 Normal weight
25 – 29.9 Over weight
>= 30 Obese
Program 6:Blood pressure readings have two numbers, for example 140/90mmHg.
The top number is your systolic blood pressure. The bottom one is your diastolic blood pressure.
Take the systolic and diastolic blood pressure as input and display High blood pressure, Pre-high
blood pressure, Ideal blood pressure and Low blood pressure.