Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions