Question: wer 3. Write a program that will take as input the total on a bill at a restaurant (before tax) and outputs the bill amount,

 wer 3. Write a program that will take as input the

wer 3. Write a program that will take as input the total on a bill at a restaurant (before tax) and outputs the bill amount, the tax assume 6%), the tip which is 15% of the pre-tax bill, and the total amount the dinner is going to cost you (that is, the bill amount with both tax and tip included) For example, say that your food costs $35, then this is your pre-tax bill. The tax will be 35 0.06 - 2.10. The tip is off of the pre-tax bill (the $35 not $37.10), so it would be 35-0.15 -5.25. So the total amount would be 35+2.10 +5.25 = 42,35. Two samplers of the program are below. You should round your outputs to the appropriate number of decimal places What is the bill amount? 35 Bill 35.00 Tax 2.10 5.25 Total 42.35 What is the bill amount? 89.23 Bin 89.23 Tax 5.35 13.38 Total 107.97 1 O G 0 wer 3. Write a program that will take as input the total on a bill at a restaurant (before tax) and outputs the bill amount, the tax assume 6%), the tip which is 15% of the pre-tax bill, and the total amount the dinner is going to cost you (that is, the bill amount with both tax and tip included) For example, say that your food costs $35, then this is your pre-tax bill. The tax will be 35 0.06 - 2.10. The tip is off of the pre-tax bill (the $35 not $37.10), so it would be 35-0.15 -5.25. So the total amount would be 35+2.10 +5.25 = 42,35. Two samplers of the program are below. You should round your outputs to the appropriate number of decimal places What is the bill amount? 35 Bill 35.00 Tax 2.10 5.25 Total 42.35 What is the bill amount? 89.23 Bin 89.23 Tax 5.35 13.38 Total 107.97 1 O G 0

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 Databases Questions!