Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions