What will be the value of discountRate after the following statements are executed?

```
double discountRate;
char custType = 'B';
switch (custType)
{
case 'A':
discountRate = 0.08;
break;
case 'B':
discountRate = 0.06;
case 'C':
discountRate = 0.04;
default:
discountRate = 0.0;
}
```

a. 0.08
b. 0.06
c. 0.04
d. 0.0


d. 0.0

Computer Science & Information Technology

You might also like to view...

Identify the compiler errors and state what is wrong with the code.

``` #include using namespace std; class Ball { private: string shade; Ball(){ shade = green;} WhatColor{}{cout << shade;} ] } int main(); { Ball MyBall; MyBall.WhatColor(); } ```

Computer Science & Information Technology

A JavaScript comment that is written on just one line begins with the characters:

A) /* B)

A frameset can contain ____.

A. horizontal frames B. vertical frames C. either a. or b. D. neither a. nor b.

Computer Science & Information Technology

Which of these display information about installed hardware during startup and can be used to find out information such as RAID level, integrated ports, and other information by moving through the screens?

a. BIOS/UEFI setup b. System Information c. Device Manager d. Belarc System Advisor

Computer Science & Information Technology