Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Chapter 0 4 Sales Tax Calculator Create a program that uses a separate module, named CalculationsModule.py , to calculate sales tax and total

Chapter 04 Sales Tax Calculator Create a program that uses a separate module, named " CalculationsModule.py", to calculate sales tax and total after tax. This module will need to be imported into the Main Module Console Specifications The main module will get the cost of each item as input from the user, calculate the total of all the items, and print the output as shown in the sample output above Use a loop, as described in previous chapters, to get input from the user and accumulate the total, until the value of -99 is entered. There will be a second outer loop that gets the response to the 'Again?' question. Divide the code in this module into functions that will make the code easier to read and maintain. The calculation module will contain two functions that calculate (1) the sales tax and (2) the total after tax. The functions will take the total cost of all items as the input argument and return the results rounded to a maximum of two decimal places. The sales tax rate should be 6% of the total. Store the sales tax rate as a global constant in the calculations module. Add decStrings, to this calculation module for the module and two functions. Assume the user will enter valid data. NOTE: See the chapter 4 temperature module example as a template for the assignment. It has two simple
functions that each take a single parameter.
MacBook Air

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions