Question: bill = float ( input ( ' Enter the bill amount: ' ) ) # Get the tip percentage from the user tip _ percentage

bill = float(input('Enter the bill amount: '))
# Get the tip percentage from the user
tip_percentage = float(input('Enter the tip percentage: '))
# Calculate the tip
tip = bill *(tip_percentage /100)
# Calculate the tax
tax = bill *0.095
# Calculate the total amount to pay
total = bill + tip + tax
# Print the results
print('Bill: \$'+ format(bill,'.2f'))
print('Tip: \$'+ format(tip,'.2f'))
print('Tax: \$'+ format(tax,'.2f'))
print('Total: \$'+ format(total,'.2f'))

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!