What would be the value of bonus after the following statements are executed?

```
int bonus, sales = 85000;
char dept = 'S';
if (sales > 100000)
if (dept == 'R')
bonus = 2000;
else
bonus = 1500;
else if (sales > 75000)
if (dept == 'R')
bonus = 1250;
else
bonus = 1000;
else
bonus = 0;
```

a. 2000
b. 1500
c. 1250
d. 1000


d. 1000

Computer Science & Information Technology

You might also like to view...

One way to identify a trend is by adding a scatterline to a trend chart of the data. ?

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

Computer Science & Information Technology

If you are interested in an occupation as an operating system administrator or software engineer, you also may benefit from certifications in networking, hardware, and the Internet.

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

Computer Science & Information Technology

To add an edge, if the graph is a digraph, one vertex must be specified as the source, and one as the destination.

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

Computer Science & Information Technology

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

1. Security basics and literacy is required for those employees, including contractor employees, who are involved in any way with IT systems. 2. Awareness only communicates information security policies and procedures that need to be followed and does not provide the foundation for any sanctions or disciplinary actions imposed for noncompliance. 3. Awareness is used to explain the rules of behavior for using an agency’s information systems and information and establishes a level of expectation on the acceptable use of the information and information systems. 4. To emphasize the importance of security awareness, an organization should have a security awareness policy document that is provided to all employees. 5. Programmers, developers, and system maintainers require less advanced security training than other employees.

Computer Science & Information Technology