What would be the value of bonus after the following statements are executed? int bonus, sales = 1250;
If (sales > 1000)
Bonus = 100;
If (sales > 750)
Bonus = 50;
If (sales > 500)
Bonus = 25;
Else
Bonus = 0;
A) 100
B) 500
C) 25
D) 0
Correct Answer:
Verified
Q48: Which of the following is the correct
Q49: What would be the value of discountRate
Q50: Which of the following is the not
Q51: What is the value of charges after
Q52: Which of the following will format
Q54: Which of the following will format 12.78
Q55: What will be printed when the following
Q56: What does the following code display?
double
Q57: If you prematurely terminate an if statement
Q58: What is the value of ans, x,
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