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

c. .01

Computer Science & Information Technology

You might also like to view...

Automatic page numbers can be inserted into a header or into a footer

Indicate whether the statement is true or false

Computer Science & Information Technology

The ____ column is a Layer Icon column in the Timeline.

a. Visibility b. Display c. Lock d. Outline

Computer Science & Information Technology