the ideal weight for a woman is found by multiplying her height in inches by 3.5 and subtracting 108. the ideal weight for a man is found by multiplying his height in inches by 4 and subtracting 128.
write a sub-procedure that will read in the height of a person and validate that this value is between 0.5m and 3m.
write a sub-procedure that will read in the gender and validate gender to be either M, m for male or F,f for female.
write a procedure to calculate and output the ideal weight of a person.
Loading
Ankit NandekarPosted Apr 19, 2011, 12:50 AM
Sam HobbsPosted Apr 18, 2011, 10:16 PM
VulpesPosted Apr 18, 2011, 10:44 AM