What will be the value of bonus after the following statements are executed? int bonus, sales = 10000;
If (sales < 5000)
Bonus = 200;
Else if (sales < 7500)
Bonus = 500;
Else if (sales < 10000)
Bonus = 750;
Else if (sales < 20000)
Bonus = 1000;
Else
Bonus = 1250;
A) 750
B) 1250
C) 500
D) 1000
Correct Answer:
Verified
Q23: A _ is a boolean variable that
Q24: What will be the value of x
Q25: Which of the following expressions determines whether
Q26: What will be the values of ans,
Q27: In Java, when a character is stored
Q29: The boolean expression in an if statement
Q30: What will be displayed after the following
Q31: What will be the value of discountRate
Q32: What will be the value of discountRate
Q33: Java requires that the boolean expression being
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents