Question: Write a program that asks the user to input the cost of their meal as a decimal amount and the tip as a percent as

Write a program that asks the user to input the cost of their meal as a decimal amount and the tip as a percent as a whole number. Use a standard tip percent of your choice. The program should use a tax rate of 7 percent that is stored in a properly named constant as decimal. The program should then calculate the dollar amounts of the tip and tax and add these to the original cost to calculate the grand total. The program should then display these amounts (the tax, the tip, and the grand total) to the user. Review the Python math operators on page 54 to help with this task and use f_string printing. The programs prompts and output should be formatted as in the Example Input/Output below.

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!