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 = .05;
Else
DiscountRate = .04;
Else if (purchase > 750)
If (cust == 'Y')
DiscountRate = .04;
Else
DiscountRate = .03;
Else
DiscountRate = 0;
A) .05
B) .04
C) .03
D) 0
Correct Answer:

Verified
Correct Answer:
Verified
Q8: What does the following code display? <br>double
Q15: What will be the value of ans
Q16: A block of code is enclosed in
Q17: What will be printed when the following
Q18: What will be the value of charges
Q24: The expression tested by an if statement
Q25: What would be the value of discountRate
Q42: Unicode is an international encoding system that
Q44: Which of the following expressions will determine
Q64: An important style rule you should follow