Question: In c + + , using a switch case, create a program that offers 1 5 % , 1 8 % , 2 0 %

In c++, using a switch case, create a program that offers 15%,18%,20%,22% or a custom tip. The program then calculates the appropiate total with the tip and tax (10%). If the user spends more than 10$ and tips more than 18% a boolean flag displays a 5% discount to the price and accordingly changes the price, otherwise no discount is given.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!