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!

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Concept of memory addresses in pointers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr