Computers and Technology

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);

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, kingethan08
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
image
Computers and Technology, 23.06.2019 16:00, keyonaemanieevans
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
image
Computers and Technology, 24.06.2019 13:00, ddaaaeeee2960
Which one of the following functions is not available on the autosum tool? sum average if max
Answers: 3
image
Computers and Technology, 24.06.2019 14:30, ari313
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
Do you know the correct 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, 15.10.2020 01:01