Question: int x = 5, y = 6: switch (x) case 1: case 2: yX; break; case 3: case 4: case 5: y - y -



int x = 5, y = 6: switch (x) case 1: case 2: yX; break; case 3: case 4: case 5: y - y - x; default: X-y: } cout What is the output of the code above? Answers: 11 5 1 66 55 What is the output of the following code? char grade - 'B'; switch (grade) case 'A': cout O) 2Xy: Answers: b, 3 A shop sells goods that retail for $99. The discounts are given based on the quantity as shown in the table below: Quantity Discount 10-19 206 20-39 3046 40-90 406 91 or more 50% Write a program that promotes the user to enter the number of goods purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Sample input/output Enter the past the discuss The total out of the case after the discount: $ 2008 Procured hot: 1.85
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
