Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Take a screenshot as java file this is the question the first page is down and the second one is the one on top Method

Take a screenshot as java file this is the question the first page is down and the second one is the one on top

image text in transcribedimage text in transcribed
Method Assignment - Body Fat Percentage (BFP) Calculator Application Develop a Java application to computer BFP of a person using the Body Mass Index (BMI) method. Implement method(s) to compute and return the BFP value according to the following formulas: . Adult Male's Body fat percentage (BFP) formula: BFP = (1.20 x BMI) + (0.23 x Age) - 16.2 . Adult Female's Body fat percentage (BFP) formula: BFP = (1.20 x BMI) + (0.23 x Age) - 5.4 Boy's Body fat percentage (BFP) formula: BFP = (1.51 x BMI) - (0.70 x Age) - 2.2 Girl's Body fat percentage (BFP) formula: BFP = (1.51 x BMI) - (0.70 x Age) - 1.4 To compute a BMI of a person, the formula used in this application is "Imperial English BMI Formula" provided below: BMI = weight (lbs) / height (inch2) x 703 (1 foot = 12 inches) Write a program that allows the user to input their weight in, height in feet, age in years, and gender (Adult Male, Adult Female, Boy, or Girl). The program should then output the BFP Value of the person. Sample Runs Male: > run Application Enter Weight in Pounds (1bs) : 140 Enter Height in Feet: 5.8 Enter Age: 35 Enter Gender (M for Male : F for Fenale : B for Boy : G for Girl) : M Your BFP is: 16.2Female: > run Application Enter Height. in Pounds (lbs): 140 Enter Height in Feet: '58 Enter Age: '35 Enter. Gender (11 for Male : F for Fenale : B for Boy : G tor Girl) : IF Your BF? is: 27.0 Boy: > run Application Enter 'Feight in Pounds (lbs): 495 Enter Height in Feet: '3'9 Enter Age: '7 Enter Gender (H for Hale : E for Fen-ale : 'B for Boy : G for Gitli : '3 Your BFP is: 25.? Girl: > run Application Enter Height in Pounds (lbs): 495 Enter Height in Feet: '33 Enter Age: '7 Enter Gender (1! for Hale : F for Fennle : B for BUY : G for Girl) : '6 Your BF? is: 37.5

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_2

Step: 3

blur-text-image_3

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

Transport Operations

Authors: Allen Stuart

2nd Edition

978-0470115398, 0470115394

Students also viewed these Programming questions