subject

a. Prompts user to enter the number of BFPs that need to be calculated (number of persons). (a int) b. Define and call a method to prompt user to enter name (a String). (10 points) c. Define and call a method to prompt user to enter gender (a int or String). (10 points) d. Define and call a method to prompt user to enter age (a int). (10 points) e. Define and call a method to prompt user to enter BMI (a double). (10 points) f. Define and call a method to calculate one BFP using the given formula and values (arithmetic expressions). (15 points) g. Print out name, age, gender, BMI, BFP of each person. (5 points) h. Save BFP values in a double array. (10 points) i. Define and call a method to calculate and print the average BFP value of the above double array.(20 points) j. Include the following methods in your application, and call/invoke those methods in the main method. public static String getName( ); public static String getGender( ); or public int getGender ( ); public static int getAge( ); public static double getBMI ( ); public static double calculateBFP (int gender, int age, double bmi); public static double calculateAverage (double[] bfpArray);

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:30, jor66
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 2
image
Computers and Technology, 22.06.2019 09:30, eiza666
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
image
Computers and Technology, 24.06.2019 11:40, girdwood6678
100 pts. first person gets brainliest
Answers: 2
image
Computers and Technology, 24.06.2019 13:00, NycLife
Why should you evaluate trends when thinking about a career path?
Answers: 1
You know the right answer?
a. Prompts user to enter the number of BFPs that need to be calculated (number of persons). (a int)...

Questions in other subjects:

Konu
Mathematics, 03.02.2020 18:50