subject

The given code is a pseudo code for an algorithm to calculate and prints the sales tax and the price of an item sold in a particular state.
The sales tax is calculated as follows: The state's portion of the sales tax is 4%, and the city's portion of the
sales tax is 1.5%. If the item is a luxury item, such as a car more than $50,000, then there is a 10% luxury tax
What is wrong with the following?
1. Get the selling price of the item
2 Determine whether the item is a luxury item
3. Find the luxury tax using the following formula:if (item is a luxury item) luxuryTex = salePrice x 0.1
otherwise luxuryTax = 0
4. Find the state's portion of the sales tax using the formula: stateSales Tax = Sale Price x 0.04
5. Find the city's portion of the sales tax using the formula: city Sales Tax = salePrice x. 0.015
6. Find salesTax using the formula: sales Tax = stateSales Tax + city Sales Tax + luxury Tax
7. Find amount Due using the formula: amountDue = salePrice + sales Tax
intamountDue, sales Tax
5
9. end

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:30
By refraining from constructing a building until they are certain that it will not cause harm to the environment, an organization is adhering to the
Answers: 2
question
Computers and Technology, 23.06.2019 13:00
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
What is the most important for you to choose before you build a network?
Answers: 1
You know the right answer?
The given code is a pseudo code for an algorithm to calculate and prints the sales tax and the price...
Questions
question
English, 15.07.2020 01:01