Problem

Monthly Sales TaxA retail company must file a monthly sales tax report listing the total s...

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 state­ments. Use the following test data to determine whether the application is calculat­ing 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

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT