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
Related Questions
Q10: What is the value of ans after
Q12: If str1 and str2 are both Strings,
Q13: What will be the values of ans,
Q13: When testing for character values, the switch
Q15: What would be the value of bonus
Q16: Which of the following will format 12.78
Q16: A block of code is enclosed in
Q17: What will be the values of ans,
Q18: Which of the following is the correct
Q19: What would be the value of discountRate