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, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
The gene form of a trait is called a(n) 
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Write the pseudo code for this problem based on what you learned from the video. the purpose is to design a modular program that asks the user to enter a distance in kilometers, and then converts that distance to miles. the conversion formula is as follows: miles = kilometers x 0.6214
Answers: 3
question
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
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
Mathematics, 14.01.2021 18:00
question
Social Studies, 14.01.2021 18:00
Questions on the website: 13722361