Question: PPLEASE WRITE CODE IN SWIFT. A retail company must file a monthly sales tax report listing the total sales for the month and the amount

PPLEASE WRITE CODE IN SWIFT.

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)

Step 1: Examine the following algorithm.

Get the total sales for the month.

Multiply the total sales by .04 to calculate the state sales tax.

Multiply the total sales by .02 to calculate the county sales tax.

Add the state tax and county tax to calculate the total sales tax.

Display the calculated county tax, state tax, and total sales tax.

Step 2: Given a total sales of $27,097, your program must calculate the following:

What is the calculated state tax?

What is the calculated county tax?

What is the calculated total tax?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!