Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

2 Describe three key approaches to entering international markets.

Answered: 1 week ago