diff options
| author | mo <mo.khan@gmail.com> | 2019-07-19 15:36:49 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-07-19 15:36:49 -0600 |
| commit | 12634f895cb7959aef9e82964a6d466bbc4a266b (patch) | |
| tree | 8610ce526148ab0a187143636b686fefbbaf8cef /src/Q7/README.md | |
| parent | f4e8b9c5544ec5a07b0ac29932186a6c95e6d679 (diff) | |
add Q7 problem statement
Diffstat (limited to 'src/Q7/README.md')
| -rw-r--r-- | src/Q7/README.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/Q7/README.md b/src/Q7/README.md new file mode 100644 index 0000000..7eedc51 --- /dev/null +++ b/src/Q7/README.md @@ -0,0 +1,45 @@ +Learning Profile for Assignment #2, And Question #7 + +Name: Mo Khan +Student ID: 3431709 + +1. Problem Statement: + +```text +Create a Person class that includes the name of the person, +the weight of the person (in pounds), and the height of the person (in inches). +For the data listed in the table below, create four Person objects. +Compute their individual body mass index (BMI) and store it as part of these objects. + +Further, determine their weight category and add that information as part of +the object as well. + +Store each of these four Person objects, their corresponding BMI, +and weight category in a different ArrayList and develop get and set methods +to access elements in that ArrayList. +``` + +| Name | Weight (pounds) | Height (inches) | +| ------------- |:---------------:| ---------------:| +| Andrew | 125.5 | 55.1 | +| Boyd | 150.0 | 67 | +| Cathy | 135 | 72.3 | +| Donna | 190 | 64 | + +BMI is calculated using the following formula: + +```text +BMI = (weight (lb) * 703) / ((height (in))^2) +``` + +BMI can indicate the following categories: + +* Underweight when BMI is less than 18.5 +* Normal weight when BMI is between 18.5 and 25 +* Overweight when BMI is between 25 and 30 +* Obese when BMI is 30 or greater + +1. Description of the Code: +1. Errors and Warnings: +1. Sample Input and Output: +1. Discussion: |
