Solved

What Would Be the Value of DiscountRate After the Following

Question 20

Multiple Choice

What would be the value of discountRate after the following statements are executed?
Double discountRate = 0.0;
Int purchase = 1250
Char cust = 'N';
If (purchase > 1000
If (cust == 'Y')
DiscountRate = 0.05;
Else
DiscountRate = 0.04;
Else if (purchase > 750)
If (cust == 'Y')
DiscountRate = 0.04;
Else
DiscountRate = 0.03;
Else
DiscountRate = 0.0;


A) 0.0
B) 0.04
C) 0.05
D) 0.03

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents