Question: Java CODE Write java code that asks the user to first input if they are male or female then ask for two different body fat

Java CODE

Write java code that asks the user to first input if they are male or female

then ask for two different body fat percentage measurments

then takes the average of the two body fat percentages

Finally the algorithm outputs a phrase based on the individual's gender and average body fat percentage based on the ranges below

Men - "Dangerously Low" if body fat <4%

"Acceptable" if body fat between 5-25%

"Dangerously High" if body fat is >26%

Women - "Dangerously Low" if body fat <12%

"Acceptable" If body fat between 13-31%

"Dangerously High" if body fat is >32%

CODE REQUIREMENTS

1. Use a graphical user interface

2. Controls to ensure correct user input

3. Read a database for data

4. Multiple classes

5. Multiple methods

6. Java code properly and completely documented

7. Extra credit - update and add records on the database

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 Programming Questions!