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 10:40
"it security policy enforcement and monitoring" respond to the following: describe how monitoring worker activities can increase the security within organizations. describe the rationale that managers should use to determine the degree of monitoring that the organization should conduct. explain the extent to which you believe an organization has the right to monitor user actions and traffic. determine the actions organizations can take to mitigate the potential issues associated with monitoring user actions and traffic.
Answers: 3
question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
question
Computers and Technology, 24.06.2019 07:50
Write a defining table and then a program that determines if you can sleep in or not. your program should get all its input from your computer’s clock. on all weekdays (monday through friday) that are not holidays, your program should output “get up! ” on all other days (weekends and holidays), your program should output “sleep in.” the three holidays that your program must check for are january 1 (new year’s day), july 4 (u.s. independence day), and december 25 (christmas). you don’t need to include other holidays in your program because most other holidays do not occur on a fixed day each year.
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, 13.11.2021 04:00
question
Mathematics, 13.11.2021 04:00
question
History, 13.11.2021 04:00
question
Mathematics, 13.11.2021 04:00
question
Mathematics, 13.11.2021 04:00
question
English, 13.11.2021 04:00
question
Mathematics, 13.11.2021 04:00
Questions on the website: 13722359