Computer Science, asked by dvela023, 1 month ago

NEED ANSWER ASAP (NO LINKS)
Select the correct answer.
If there was a sale on toys, and a child picked up Brand B, how much discount would he get as per the below program?
switch (d){ //d contains the brand label
case “A”:

price = price * 0.65 //apply a 35 percent discount
break;

case “B”:

price = price * 0.75
break;

case “C”:

price = price * 0.8
break;

default: //if none of the cases above apply

price = price * 0.9; // apply a 10 percent discount

}

A.
5
B.
20
C.
35
D.
25
E.
10

Answers

Answered by saisujan2005
1

Answer:

option b]20

hope it is helpful

please mark me brainliest

Explanation:

Similar questions