Question: Write a program in java that can calculate the average Body Mass Index people and save them in CSV File Program must contain the following:

Write a program in java that can calculate the average Body Mass Index people and save them in CSV File

Program must contain the following:

(1) Use jtextarea to ask for the users Name, height, and weight.

(2) Calculate Average BMI--> BMI= (Someones weight in pounds) / [(height in inches)2x(703)]

(3) Apply the following BMI data for your program:

A BMI below 18.5 (shown in white color) is considered underweight.

A BMI of 18.5 to 24.9 (green) is considered healthy.

A BMI of 25 to 29.9 (yellow) is considered overweight.

A BMI of 30 or higher (red) is considered obese.

(4) Allow for multiple operations for new data appending

(5) Allocate arrays of BMI with 10 elements in either parallel or Multidimensional Arrays for data of name, weight, height, BMI value, and comment of the BMI value. Entering 10 BMI values is time consuming, suggest that your hardwired these 10 set of numbers, when done set it back to normal flow.

(6) Collect and populate BMI data to arrays, mean time, save all BMI values to a CSF text data file. During the data entry step, each numeric data must be verified for validity including range.

(7) While commenting BMI values, also accumulate statistics for underweight, normal etc.

(8) At end of data entry, display in one GUI O/P in jOpitionPane statement for the BMI statistical data, such as average, # of underweight, normal etc. In the same GUI also include all BMI values including all values of name, weight, height, and BMI of each member saved in the arrays.

(9) Provide a BMI data retrieval service.

(10) At end, display a thank you message, and ending in the same GUI O/P in jOpitionPane statement with End of Job

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!