Help! (In Python). Please dont use chatgpt Sales Tax Calculator Create a program that uses a separate module to calculate sales tax and total after-tax. Example runtime. User input is italicized for the example. Allow the user to enter their own input: Sales Tax Calculator ENTER ITEMS (ENTER 0 TO END) Cost of item: 35.99 Cost of item: 27.50 Cost of item: 19.59 Cost of item: 0 Total: 83.08 Sales tax: 4.98 Total after tax: 88.06 Again? (y/n): y ENTER ITEMS (ENTER 0 TO END) Cost of item: 152.50 Cost of item: 59.80 Cost of item: 0 Total: 212.3 Sales tax: 12.74 Total after tax: 225.04 Again? (y/n): n Thanks, bye!
Help! (In Python). Please dont use chatgpt
Sales Tax Calculator
Create a program that uses a separate module to calculate sales tax and total after-tax.
Example runtime. User input is italicized for the example. Allow the user to enter their own input:
Sales Tax Calculator
ENTER ITEMS (ENTER 0 TO END)
Cost of item: 35.99
Cost of item: 27.50
Cost of item: 19.59
Cost of item: 0
Total: 83.08
Sales tax: 4.98
Total after tax: 88.06
Again? (y/n): y
ENTER ITEMS (ENTER 0 TO END)
Cost of item: 152.50
Cost of item: 59.80
Cost of item: 0
Total: 212.3
Sales tax: 12.74
Total after tax: 225.04
Again? (y/n): n
Thanks, bye!
The sales tax should be 6% of the total amount.
In a module, save the sales tax rate. This module should additionally provide functions for calculating sales tax and total after-tax. The results of these functions should be rounded to a maximum of two decimal places.
In the main() method, store the code that receives input and shows output. When you think it will make the code easier to read and maintain, divide it into functions.
Allow the user to repeat this process as any time as they want.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images