Question: Given a person's BMI and average blood sugar level over the last 2-3 months (HBA1C), the program prints health warning message(s). If BMI is greater

Given a person's BMI and average blood sugar level over the last 2-3 months (HBA1C), the program prints health warning message(s). If BMI is greater than or equal to 25.0, the program should print "You are overweight or obese." If HBA1C over 5.7%, the program should print "You may have diabetes. The following is some sample runs: > run Health Check Enter BMI: 21 Enter HBA1C > run Health Check Enter BMI: 26 Enter HBA1C You are overweight or obese. >run Health Check Enter BME: 275 Enter HBA1C: 55 You are overweight or obese. You may have diabetes, > run Health Check Enter BMI: 21 Enter HBA1C: 59 You may have diabetes. 1. Variables (add more rows if needed): Description Inputs Variable name Outputs II. Conditions that the Program Needs to Exam (add more rows if needed): Description (English or Math) Boolean Expression III. Exclusiveness and Multi-branch vs Multiple Issue: Can more than one condition above be true at the same time for one execution of the program? (1) Answer Yes or No and (2) state the reason: Answer: If yes, use multiple separate if statement. If no, use one multi-branch if statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
