Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program using NetBeans IDE or notepad that calculates the income tax . INTRODUCTION From 2009, people in the Strange country must pay

Write a Java program using NetBeans IDE or notepad that calculates the income tax .

INTRODUCTION From 2009, people in the Strange country must pay income tax depended on the total amount he/she earns. Income tax is the kind of progress tax, which applies higher tax rates to individuals posting higher earnings. Firstly, taxable income is identified. Taxable income is calculated by deducting deduction from income. Then, taxable income is multiplied by the tax rate of according brackets you belong in. Here, three tax brackets: 1. taxable income of 5000 USD or less attracts tax at 5% 2. taxable income of more than 5000 USD and not more than 10000 USD attracts tax at 10%. 3. taxable income of more than 10000 USD attracts tax at 15%. SPECIFICATIONS You should use linked list to store data for taxpayers in a company. You should create a linked list from scratch, do not use list structures available in java Data like ArrayList, Vector or LinkedList classes. The items for a taxpayer are: 1. The code of the taxpayer (this should be unique for the taxpayer). 2. The name of the taxpayer. 3. The income earned by the taxpayer (should be positive). 4. The deduction amount (should be non-negative and less than income). 5. The tax to pay (calculated from income and deduction). Thus your application should contain the class like: class TaxPayer {String code,name; double income,deduct,tax; ... } On running, your program displays the menu as below:

uploaded image

1. Load data from file 2. Input & add to end 3. Display data 4. Save data to file 5. Search by code 6. Delete by code 7. Sort by code 8. Input & add to beginning 9. Add after position k 10. Delete position k 0. Exit Your selection (0 -> 10):

Step by Step Solution

3.46 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

We are using NetBeans IDE to run this program importing packages import javaio import javautil class taxpayer class TaxPayer String Code String Name double incomededucttax TaxPayer Next public TaxPaye... 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

Data Structures and Algorithms in Java

Authors: Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser

6th edition

1118771334, 1118771338, 978-1118771334

More Books

Students also viewed these Programming questions

Question

Show that if n0 / N 1, the value of n in (2.25) satisfies

Answered: 1 week ago