Multiple Choice
Assuming that the user inputs a value of 25000 for the pay and 10 for the bonus rate in the following code snippet, what is the output? public static void main(String[] args)
{
Scanner in = new Scanner(System.in) ;
System.out.print("Enter the pay: ") ;
Double pay = in.nextDouble() ;
System.out.print("Enter the bonus rate: ") ;
Double bonus = in.nextDouble() ;
System.out.println("The new pay is " +
(pay + pay * (bonus / 100.0) ) ) ;
}
A) The new pay is 25000
B) The new pay is 25100
C) The new pay is 27500
D) The new pay is 30000
Correct Answer:

Verified
Correct Answer:
Verified
Q5: What is the value inside the value
Q6: What is the output of the following
Q7: What does the following statement sequence print?
Q8: What is wrong with the following code
Q9: What will be the value inside the
Q10: Which one of the following is a
Q11: Assume the variable str has been declared
Q38: Which of the following statements about constants
Q47: The typical ranges for integers may seem
Q49: Which one of the following statements displays