Monthly Sales Tax
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% and the county sales tax rate is 2%. Create an application that allows the user to enter the total sales he month. From this figure, the application should
calculate and display the following:
a. The amount of county sales tax
b. The amount of state sales tax
c. The total sales tax (county plus state)
In the application’s code, represent the county tax rate (0.02) and the state tax rate (0.04) as named constants. Use the named constants in the mathematical statements. Use the following test data to determine whether the application is calculating properly:
Total Sales | Tax Amounts |
9,500 | County sales tax: $190.00 State sales tax: $380.00 Total sales tax: $570.00 |
5,000 | County sales tax: $100.00 State sales tax: $200.00 Total sales tax: $300.00 |
15,000 | County sales tax: $300.00 State sales tax: $600.00 Total sales tax: $900.00 |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.