d. Assume qualified is already declared. Code a fall-through switch statement that will print the following messages: When qualified is 1 and 2: You are a student or teacher and you get a 10% discount. When qualified is 3 and 4: You are a senior citizen or military and you get a 12% discount. When qualified is any other value: Sorry, youre not eligible for a discount.

Respuesta :

this is pseudo code. Change it according to the programming language you're using
switch (qualified){
case 1:
case 2: print You are a student or teacher and you get a 10% discount.
break;
case 3:
case 4: print You are a senior citizen or military and you get a 12% discount.
break;
default: print Sorry, your not eligible for a discount.
}