Calculate Tip Tax Total of Your Meal with Python Programming

preview_player
Показать описание
This program will ask you the cost of your meal at a restaurant. It will then calculate the tax and tip for your meal. The tax amount will be based on your local tax rate. The tip amount will be 18% of the meal cost (without tax). The program will show you the tax amount, the tip amount, and the total cost of your meal (including tax and tip) all shown with two decimal places.

Requirements:

- The program should prompt the user to enter the cost of the meal.
- The cost of the meal should be entered as a decimal number.
- The program should calculate the tax amount based on the local tax rate.
- The program should calculate the tip amount as 18% of the meal cost (without tax).
- The program should calculate the total cost of the meal including tax and tip.
- The program should show the tax amount, the tip amount, and the total cost of the meal, all with two decimal places.
Рекомендации по теме