Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Read the following program prior to completing the lab. A retail company must file a monthly sales tax report listing the total sales for the

Read the following program prior to completing the lab.

A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the following: The amount of county sales tax The amount of state sales tax The total sales tax (county plus state)

Consider the following functions for your program: main that calls your other functions inputData that will ask for the monthly sales calcCounty that will calculate the county tax calcState that will calculate the state tax calcTotal that will calculate the total tax printData that will display the county tax, the state tax, and the total tax

If your program is correct, sample output might look as follows:

Welcome to the total tax calculator program

Enter the total sales for the month $12567 The county tax is $ 251.34 The state tax is $ 502.68 The total tax is $ 754.02

The Python Code

PASTE COMPLETED CODE HERE

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

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions