Question: Write a program that includes a function named calculate _ city _ tax that accepts a sales amount as an argument and returns the amount
Write a program that includes a function named calculatecitytax that accepts a sales amount as an argument and returns the amount of city tax. The program should include another function named calculatecountytax that accepts the the sales amount float as an argument and returns the amount of county tax. Finally, the program should include another function called calculatestatetax that the sales amount float as an argument and returns the amount of state tax. The returned tax amounts should be rounded to two decimal places. Use docstrings to describe the functions.
The main program should prompt the user to enter the sales amount float call the functions and display the city tax, county tax, state tax and total tax. All output should be displayed using an fstring.
The tax rates to be used in the program are the following:
city tax rate
county tax rate
state tax rate
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
