Solved

What Would Be the Value of DiscountRate After the Following

Question 6

Multiple Choice

What would be the value of discountRate after the following statements are executed? double discountRate = 0.0;
Int purchase = 100;
If (purchase > 1000)
DiscountRate = .05;
Else if (purchase > 750)
DiscountRate = .03;
Else if (purchase > 500)
DiscountRate = .01;


A) .05
B) .03
C) .01
D) 0.0

Correct Answer:

verifed

Verified

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

Related Questions