Multiple Choice
What would be the value of discountRate after the following statements are executed?
double discountRate = 0.0;
Int purchase = 1250;
If (purchase > 1000)
DiscountRate = .05;
If (purchase > 750)
DiscountRate = .03;
If (purchase > 500)
DiscountRate = .01;
Else
DiscountRate = 0;
A) .05
B) .03
C) .01
D) 0
Correct Answer:

Verified
Correct Answer:
Verified
Q31: The switch statement is a<br>A) multiple alternative
Q32: Which of the following will format
Q33: In a switch statement, if two different
Q34: In a switch statement, each of the
Q36: What will be displayed after the following
Q37: What will be the value of x
Q38: What is the value of x after
Q39: What is the value of charges after
Q40: Java requires that the boolean expression being
Q44: Which of the following expressions will determine