Write A Java Console Application That Allows The User To Read Validate Store Display 4001968

Assignment task
Write a java console application that allows the user to read, validate, store, display, sort and search
data (name, age, taxable income, tax, tax group) for N taxpayers. N should be declared as a constant
and it should be equal to the largest digit of your student id number (e.g. if your ID number is
S1267222 then N should be equal to 7 and you can declare it as final int N=7;). The name, age and
taxable income must be read from the keyboard and tax and tax group must be calculated using
Table 1.
Table 1. Income Tax and Tax Group for Taxable Income
Taxable Income Income Tax Tax Group
$0 – $18200 $0 Group 1
$18201– $37000 $0 plus 19c for each $1 over $18200 Group 2
$37001 – $87000 $3572 plus 32.5c for each $1 over $37000 Group 3
$87001 – $180000 $19822 plus 37c for each $1 over $87000 Group 4
$180001 and over $54097 plus 45c for each $1 over $180000 Group 5
The name, age, taxable income, tax and tax group must be stored in an Array or ArrayList (index 0
for taxpayer 1 and index N-1 for taxpayer N). The minimum and maximum ages which can be
stored are 18 and 64. The minimum and maximum taxable incomes which can be stored are $1 and
$999000. A validation for minimum and maximum values must be done during the reading of age
and taxable income. Document Preview:

Assignment 2 Due date: Week 11 Thursday (3 October 2019) 11:45 PM AEST Weighting: 30% Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data (name, age, taxable income, tax, tax group) for N taxpayers. N should be declared as a constant and it should be equal to the largest digit of your student id number (e.g. if your ID number is S1267222 then N should be equal to 7 and you can declare it as final int N=7;). The name, age and taxable income must be read from the keyboard and tax and tax group must be calculated using Table 1. Table 1. Income Tax and Tax Group for Taxable Income Taxable Income Income Tax Tax Group $0 – $18200 $0 Group 1 $18201– $37000 $0 plus 19c for each $1 over $18200 Group 2 $37001 – $87000 $3572 plus 32.5c for each $1 over $37000 Group 3 $87001 – $180000 $19822 plus 37c for each $1 over $87000 Group 4 $180001 and over $54097 plus 45c for each $1 over $180000 Group 5 The name, age, taxable income, tax and tax group must be stored in an Array or ArrayList (index 0 for taxpayer 1 and index N-1 for taxpayer N). The minimum and maximum ages which can be stored are 18 and 64. The minimum and maximum taxable incomes which can be stored are $1 and $999000. A validation for minimum and maximum values must be done during the reading of age and taxable income. Your application should display and execute a menu with the following options. A switch statement must be used to execute the following menu options. 1. Read, validate and store data for N taxpayers 2. Calculate and store tax and tax group for all taxpayers 3. Display all taxpayers 4. Display the name and age of all taxpayers from tax group 1 5. Search a taxpayer by age 6. Sort and display taxpayers 7. Exit from the application 1. Read, validate and store data for N taxpayers This option reads name, age and taxable income for N taxpayers from the keyboard and stores them in an…

Attachments:

coit20245Assi….pdf

Prof. Angela

4.6/5

Calculate Price


Price (USD)
$
Open chat