Problem Statement for Body Mass Index Program...

This preview shows page 1 - 3 out of 15 pages.

Program 3 Eight Step Problem Solving Methodology 0. Problem Statement for Body Mass Index Program Enhancement: Design a program that calculates a person’s body mass index (BMI ). The BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height . A person’s BMI is calculated with the following formula BMI = (weight times 703 ) divided by height squared In the formula, weight is measured in pounds and height is measured in inches . Enhance the program so it displays a message indicating whether the person has optimal weight , is underweight, or is overweight. A sedentary person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25.0 . If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25.0, the person is considered to be overweight. Avoid using magic numbers, create constants to represent the BMI factor of 703, BMI upper and lower limits. 1. Major Task List (Keep it abstract; focus on the “what” high level) a. Determine health status using BMI b. Display results 2. Structure Chart (Your blue print plan for your functions…who calls who) main getWeight getHeight setMass setOverUnder showBMI :
3. Word Analysis: (Which nouns suggest a need for memory (a variable) and which verbs suggest a need for action (a function maybe). Design a program that calculates a person’s body mass index (BMI ). The BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height . A person’s BMI is calculated with the following formula : BMI = (weight times 703 ) divided by height squared In the formula, weight is measured in pounds and height is measured in inches . Enhance the program so it displays a message indicating whether the person has optimal weight , is underweight, or is overweight. A sedentary person’s weight is considered to be optimal if his or her BMI is between 18.5 and 25.0 . If the BMI is less than 18.5, the person is considered to be underweight. If the BMI value is greater than 25.0, the person is considered to be overweight. Avoid using magic numbers, create constants to represent the BMI factor of 703, BMI upper and lower limits.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture