I'm a beginner and lost on my assignment already--stuck on the switch statements. I've looked at the tutorials already but I still can't find my answer so I'm here. My assignment is a quiz so I can't really ask specific questions. I'm just confused about some parts. I know that in the if/else statement, you can have eqns like y=x+3 and then enter in an x value in the if statement to calculate what y is. I've been trying to do the same for the switch statement but I can't.
Also, I want to add all the cases together, like case 1 = case 1+case2+case3, then case 2 = case 2 +case3
with the cases being numbers of course. any help is appreciated, thanks.