Question: Develop the Python code for a program that meets the following specifications. After writing the code, use appropriate test data to test and debug the
Develop the Python code for a program that meets the following specifications. After writing the code, use appropriate test data to test and debug the program. Program Specifications: 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 5 percent and the county sales tax rate is 2.5 percent. Write a program that uses the following functions to get the monthly sales amount from a user and display the monthly sales amount and the amount of state and county sales tax. The program should use the functions: main() controls the processing and calls the other functions Note: if the value returned by get_sales is False, an error message should be displayed, otherwise the amount of taxes should be calculated and displayed. get_sales() this function should get the dollar monthly sales amount from the user and return the amount if it is greater than zero. Otherwise, the function should return False. find_tax() this function should be passed the amount of monthly sales and should return the state and county sales tax amounts. tax_report() this function should be passed the dollar amount of monthly sales, the state tax, and the county tax and should format and display the values Paste a copy of the program code here:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
