Java Reference
In-Depth Information
REQUEST FOR NEW APPLICATION
Date submitted:
October 9, 2007
Submitted by:
Sun Fitness Center, Helen Sun - Office Manager
Our staff would like an easy-to-use program that calculates the body
mass index of our customers. We measure customers when they first
enter our program and then again after several weeks. The body mass
index is a metric calculation; thus, our employees have had to
convert the height and weight and then calculate the body mass
index.
Purpose:
Application title:
Body Mass Index Calculator
Algorithms:
The body mass index is calculated as follows:
kilograms / meters 2
To convert inches to meters, divide by 39.36
To convert pounds to kilograms, divide by 2.2
Example: A 5' 7" adult that weights 145 pounds has a body mass
index of 23 as calculated in the following formulas:
1.70 meters = 67 inches / 39.36
65.91 kilograms = 145 pounds / 2.2
23 body mass index = 65.91 kilograms / 1.70 meters 2
Notes:
1. The fitness center staff is accustomed to taking measurements
using inches and pounds.
2. The program should allow the user to enter values for the height in
inches and the weight in pounds. We do not use decimals or fractions
when measuring customers. Please remind program users that they
should round the input to the nearest inch or nearest pound.
3. The calculated index can be rounded to the nearest integer.
4. Some of our trainers have PDAs, others have notebook computers.
Not all of our locations have Web access in the training room.
5. As we want to distribute this program to all of our locations,
please use “THE SUN FITNESS CENTER BODY MASS INDEX
CALCULATOR” at the top of the display.
6. In the Web version, please use our Sun Fitness Center logo.
Approvals
Approval status:
X
Approved
Rejected
Approved by:
Tyler Gilbert
Date:
October 15, 2007
Assign
ed to:
J. Starks, Programmer
FIGURE 3-2
PROBLEM ANALYSIS The problem that the Body Mass Index Calculator
program should solve is the calculation of a health-related measurement of body
fat, called the body mass index (BMI). The BMI is based on the relationship
between a person's weight and height. To complete the calculation and generate
output for the user, the Body Mass Index Calculator program requires the user
to input two values: the height in inches and the weight in pounds.
Search WWH ::




Custom Search