Question: 5) Use the input function to ask for a dollar amount of a restaurant bill. Assume the entered dollar amount is a # float (a

5) Use the input function to ask for a dollar amount of a restaurant bill. Assume the entered dollar amount is a

# float (a number with a decimal part).

# Make sure there is a helpful message saying what should be entered.

# Print out a 20% tip (multiply the given number by 0.2) along with a helpful message. As an example, if the

# user entered 10.40 for the bill amount, the tip should be 2.08

# Do not worry about making the tip amount have 2 decimal places like a dollar amount would.

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!