1. Engineering
  2. Computer Science
  3. what would be the value of discountrate after the following...

Question: what would be the value of discountrate after the following...

Question details
What would be the value of discountRate after the following statements are executed?
double discountRate;
char custType = 'B';
switch (custType)
{  
case 'A':     
discountRate = .08;     
break;  

case 'B':     
discountRate = .06;  

case 'C':     
discountRate = .04;  

default:     
discountRate = 0.0;
}
a.
.08
b.
.06
c.
.04
d.
0.0
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution