Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write Pseudo Code for Sales Tax Calculation: IN JAVA Design and write an algorithm that calculates the sales tax and price of an item in

Write Pseudo Code for Sales Tax Calculation:

IN JAVA

Design and write an algorithm that calculates the sales tax and price of an item in a particular state. Sales tax is calculated as follows: The state's portion of the sales tax is 4%, and the city's portion of the tax is 1.5%. If the item is a luxury item, such as a car of more than $50,000 then there is a 10% luxury tax.

To calculate the price of the item, we need to calculate the state's portion of the tax, the city's portion of the sales tax, and, if the item is a luxury item, the luxury tax.

  1. Write down analysis of the business problem and requirement in one paragraph.
  2. Write/Declare appropriate classes.
  3. Write/Declare appropriate methods. The methods should have algorithms that will solve the computational problems.
  4. Write/Declare appropriate class attributes/properties with appropriate data types.

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_2

Step: 3

blur-text-image_3

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions