#11  – L2 Which condition XXXX will keep prompting the user…

#11  – L2 Which condition XXXX will keep prompting the user to enter a value greater than 8, until a value that is greater than 8 is actually input?   int userInput;Scanner sc = new Scanner(System.in); do {      System.out.println(“Enter a number greater than 8:”);     userInput = sc.nextInt(); } while XXXX  

#21 – L3   Assume you have a String variable named input wh…

#21 – L3   Assume you have a String variable named input which has received a phrase from the user, and you are passing that value to a method called reverseMe().  Follow these steps EXACTLY and write the code that will:   1.)  Write the method header for reverseMe() that receives the String input as a parameter and returns void. 2.)  Within the method, code a for-loop that will start at the end of the parameter, and proceed backwards to the beginning of the parameter. 3.)  Within the for-loop, get each letter in the String and print it on the same line.  This will cause the String to print in reverse order.  For example, if the input has the value “incomprehensibilities” your loop will output “seitilibisneherpmocni”     Given code:Scanner keyboard = new Scanner(System.in);System.out.println(“Enter a word or phrase”);String input = keyboard.nextLine();reverseMe(input);   //Write your code here for reverseMe, including the method header:    

# 7 – L3   Assuming you have a double variable named brakeLe…

# 7 – L3   Assuming you have a double variable named brakeLevel whose value you have gotten from the user. You are passing that value to a method called brakeChecker which does not return anything.  Write the code that will do the following:   1)  Define the method named brakeChecker, which receives the value of brakeLevel as a parameter.  2)  Within the method, define a String variable named brakeStatus. 3)  Within the method, write code for the logic of the flowchart below.  Note that the lower range value is inclusive and the upper range value is always exclusive.   4) After the flowchart code write the code that prints the brakeStatus variable  to the console.