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...

Two kinds of Java programs are applications and applets. Define and discuss each.

What will be an ideal response?

Computer Science & Information Technology

The most common personal printers are ________ printers

A) photo B) thermal C) dye-sublimation D) inkjet

Computer Science & Information Technology

A database developer will usually want to prevent inexperienced users from deleting database records by creating a user interface that sets the Record Selectors property to No on an unbound form that allows the user to choose which query to run.____________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which kind of program attempts to locate a file on your computer or mobile device based on criteria you specify?

A. search tool B. image viewer C. file manager D. file finder

Computer Science & Information Technology