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 JAVA SWING 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started