Solved

What Would Be the Value of DiscountRate After the Following

Question 14

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions