Closed azmanyasin closed 3 years ago
Loh Siew Chin 278723 https://github.com/kellyloh811/ProgrammingQuiz/tree/master/Quiz/src
TEH YEE XIN 278070 https://github.com/tehyeexin/QUIZ-1---STIA1113.git
KHOO YEN NI 278520 https://github.com/khooyenni/Quiz1.git
INSTRUCTOR
Write a program to compute the ideal weight for both males and females. According to one study, the ideal weight for a female is 40 kg plus 5 kg for each inch in height over 5 feet. For example, the ideal weight for a female who is 5'3" would be 40 + 15 = 55 kg.
For a male, the ideal weight is 50 kg plus 6 kg for each inch in height over 5 feet. For example, the ideal weight for a male who is 6'2" would be 50 + 14*6 = 134kg.
Your program should ask the user to enter his/her height in feet and inches (both as integers—so a person 5'3" would enter the 5 and the 3). It should then compute and print both the ideal weight for a female and the ideal weight for a male. The general outline of your main function would be as follows:
SUBMISSION