Question: Create a program that uses a separate module to calculate sales tax and total after tax. Console Sales Tax Calculator ENTER ITEMS ( BNTER 0
Create a program that uses a separate module to calculate sales tax and total after tax.
Console
Sales Tax Calculator
ENTER ITEMS BNTER TO END
Cost of item:
Cost of item:
Cost of item:
Cost of item:
Total:
Sales tax:
Total after tax:
Again? :
ENTER ITEMS BNTER TO END
Cost of item:
Cost of item:
cost of item:
Total:
Sales tax:
Total after tax:
Again? :
Thanks, bye!
Specifications
The sales tax rate should be of the total.
Store the sales tax rate in a module. This module should also contain functions that calculate the sales tax and the total after tax. These functions should round the results to a maximum of two decimal places.
Store the code that gets input and displays output in the mainO function. Divide this code into functions whenever you think it would make that code easier to read and maintain.
Assume the user will enter valid data.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
