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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Consider the following statements: #include #include class temporary { private: string description; double first; double second; public: temporary(string = "", double = 0.0, double = 0.0); void set(string, double, double); double manipulate(); void get(string& , double& , double& ); void setdescription(string); void setfirst(double); void setsecond(double); }; write the definition of the member function set() so that the instance variables are set according to the parameters. write the definition of the constructor so that it initializes the instance variables using the function set() write the definition of the member function manipulate() that returns a decimal number (double) as follows: if the value of description is "rectangle", it returns first * second if the value of description is "circle" it returns the area of a circle with radius first if the value of description is "cylinder" it returns the volume of a cylinder with radius first and height second. hint: the volume of a cylinder is simply the area of the circle at the base times the height. if the value of description is "sphere" it returns the volume of the sphere with radius first. otherwise it returns -1.0;
Answers: 1
question
Computers and Technology, 22.06.2019 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
question
Computers and Technology, 22.06.2019 20:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
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
question
Mathematics, 14.04.2021 19:50
question
Mathematics, 14.04.2021 19:50
question
Health, 14.04.2021 19:50
question
Mathematics, 14.04.2021 19:50
question
Computers and Technology, 14.04.2021 19:50
Questions on the website: 13722367