Assuming you have a double variable named bmi whose value yo…

Assuming you have a double variable named bmi whose value you have gotten from the user, and you are passing that value to a method called printHealth().  Write the code that will do the following:   1.)  Define the method header for the printHealth() method, which receives the value of bmi as a parameter.2.)  Within the method, define a String variable names healthStatus.3.)  Within the method, write the selection statement to determine the value to be moved into healthStatus variable according to the table below. 4.)  Within the method, after the selection statement, print a message stating the bmi of the person and their healthStatus.                           BMI                     Health Status                        below 18.5  —->   underweightfrom 18.5  to below 25.0  —->  healthyfrom 25.0  to below 30.0  —->  overweightfrom 30.0  to below 40.0 —–>  obese                          over 40.0 —–>  extremely obese  —————————————————– Given this code:System.out.println(“What is your bmi”);double bmi = keyboard.nextDouble();printHealth(bmi);   //Write your code here:               

Write the code that uses the integer variables sum5s and use…

Write the code that uses the integer variables sum5s and userInput to do the following: 1.)  Create a do-while loop that stops when the userInput is 0.2.)  Inside the do-while loop ask the user to enter a number and save it in userInput.3.)  Check to see if the number entered is divisible by 5 and if it is then accumulate it into the variable called sum5s.4.)  After the loop is over, print a message that states the contents of the sum5s variable. Given the code: int sum5s = 0;int userInput;Scanner keyboard = new Scanner(System.in);//Write your code here: