Question: . Write a program that will take as input the total on a bill at a restaurant (before tax) andoutputs the bill amount, the tax
. Write a program that will take as input the total on a bill at a restaurant (before tax) andoutputs the bill amount, the tax (assume 6%), the tip which is 15% of the pre-tax bill, andthe total amount the dinner is going to cost you (that is, the bill amount with both tax andtip included).For example, say that your food costs $35, then this is your pre-tax bill. The tax will be350.06 = 2.10. The tip is off of the pre-tax bill (the $35 not $37.10), so it would be350.15 = 5.25. So the total amount would be 35 + 2.10 + 5.25 = 42.35. Two sample runs ofthe program are below. You should round your outputs to the appropriate number of decimalplaces.What is the bill amount? 35Bill 35.00Tax 2.10Tip 5.25Total 42.35What is the bill amount? 89.23Bill 89.23Tax 5.35Tip 13.38Total 107.97 computer sesnse
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
