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:

Verified
Correct Answer:
Verified
Related Questions
Q1: Which of the following correctly tests the
Q2: What is the value of ans after
Q4: What will be the value of x
Q10: What will be the values of ans,x,and
Q11: What will be the values of ans,x,and
Q12: What would be the value of bonus
Q20: What will be the value of pay
Q39: If chr is a character variable, which
Q43: The if-else statement will execute one group
Q57: This is a boolean variable that signals