161,407 views
20 votes
20 votes
When it comes to paying bills at restaurants, Wallace always leaves a 15% tip based on the pretax price. However, Wallace is tired of computing tips every time, please construct a function total_bill, which takes a numerical argument pretax and returns the total bill by 1) calculating the tip, 2) the after-tax price, and 3) adding the tip to the after-tax price. Assume the sale tax is 9%. Below is how the function would be used:

pretax = 15
print('The total bill is ${}'.format(total_bill(pretax)))
The output should be:
The total bill is $18.6

User Jenita
by
3.0k points

1 Answer

9 votes
9 votes

Answer:

where are the answers.

Step-by-step explanation:

User Jnorris
by
3.2k points