Question: Write a c program that calculates the amount of tip per person given bill amount before tax. A tax of 16% will be added
Write a c program that calculates the amount of tip per person given bill amount before tax. A tax of 16% will be added to the bill. Your program should input the following information: 1. The bill 2. The percentage of tip that the person wants to pay: (10%, 15%, or 20%) 3. The number of persons Your program should output the following information: 1. The tax amounts. 2. The bill after tax 3. tip per person 4. Total per person at Enter the bill ammount 50 Enter number of person 2 Enter tip percentage[ 0.10,0.15,0.20] 0.10 The tax 8.00 $ The bill after tax 58.00 $ The Tip per person 2.90 $ The Amount per person include tip 22.23 $ A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
