Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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$
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started