What would be the value of bonus after the following statements are executed? int bonus, sales = 85000;
Char dept = 'S';
If (sales > 100000)
If (dept == 'R')
Bonus = 2000;
Else
Bonus = 1500;
Else if (sales > 75000)
If (dept == 'R')
Bonus = 1250;
Else
Bonus = 1000;
Else
Bonus = 0;
A) 2000
B) 1500
C) 1250
D) 1000
Correct Answer:
Verified
Q41: Which of the following is the correct
Q42: What is the value of ans after
Q43: An expression tested by an if statement
Q44: What is the value of x after
Q46: Which of the following expressions will determine
Q46: _ works like this: If the expression
Q47: What does the following code display?
int
Q48: Which of the following is the correct
Q49: What would be the value of discountRate
Q50: Which of the following is the not
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