Write a java console application for calculating income tax

Assignment Help JAVA Programming
Reference no: EM132365965

Assignment task

Write a java console application for calculating income tax for N company employees. N should be declared as a constant and it should be equal to the largest digit of your student II) number (e.g. if your ID number is 5456222 then N should be equal to 6 and you can declare it as final int N=6). The income tax and tax group for taxable income are shown below in Table I.

Table I. 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 SI over $18200

Group 2

$37001 - $87000

$3572 plus 32.5c for each $1 over $37000

Group 3

$87001 - $180000

$19822 plus 37c for each $1over $87000

Group 4

$180001 and over

$54097 plus 45c for each $1 over $180000

Group 5


The application should ask the user to enter the taxable income for each employee (total N employees) and calculate the income tax for each employee. The application should display the income lax for each employee as shown in the example below.

At the end of the NM employee. the details such as highest lax. lowest tax, number of employees in Group I. number of employees in Group 5 and tax group with highest number of employees should be displayed.

If more than one group has the same number of employees then the group with higher number should he displayed, e.g. Group I and Group 5 both have 2 employees which is highest number of employees then 5 should be displayed).

Example for N=6

Enter the taxable income for employee 1: 17500

The income tax for employee 1 is $0.00

Enter the taxable income for employee 2: 19200

The income tax for employee 2 is $190.00

Enter the taxable income for employee 3: 38000

The laconic tax for employee 3 is $3897 00

Enter the taxable income for employee 4: 90000

The income tax for employee 4 is $20932.00

Enter the taxable income for employee 5: 181000

The income tax for employee 5 is $54547.00

Attachment:- Code.rar

Reference no: EM132365965

Questions Cloud

Why goldman sachs was a disciple of albert carr theory : Discuss why Goldman Sachs (use research from the CU library for Goldman Sachs) was a disciple of Albert Carr's theory of "business is a poker game and we are.
Improve the organization culture : What recommendations support how the study of power and politics could influence leadership behavior and improve the organization's culture?
Describe marketing strategies for growing market share : Describe two marketing strategies that firms can select for growing their market share domestically. Explain which of the two marketing strategies you select.
Case study issue of carroll : The factors in which organisations competing in your industry of choice are distinguished or differentiated by and how these factors
Write a java console application for calculating income tax : Write a java console application for calculating income tax for N company employees. N should be declared as a constant and it should be equal.
How collaboration boosts the performance of organizations : List and describe several ways how collaboration boosts the performance of organizations.
What is called disaster diplomacy : A theory has been advanced for what is called "Disaster Diplomacy." Its premise is that international disaster response can be a form of diplomacy.
Discuss advantages of the smoothwall firewall application : Smoothwall is one example of a firewall application. This week, you will discuss three advantages and three disadvantages of the SmoothWall firewall.
Evolving role of data in decision making : How does the article define "big data"? Based on your functional area of expertise, discuss the frequency of big data in driving decisions graph versus what you

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a custom java exception class named badarrayexception

A constructor taking a String parameter (the exception message) that must be passed to the parent Exception(String) constructor.

  Movie should be represented

Each movie should be represented by an object of type Movie. The Movie class must provide two public fields: title and category. Both of these fields should be Strings. The class should also provide a

  Calculate the cross product of two numeric vectors function

Create a function that calculate the cross product of two numeric vectors Function Name: calcCrossProduct

  Sorting routine adopted in the java api for arrays.sort()?

What is the sorting routine adopted in the Java API for Arrays.sort()? How different is it from the sorting routine we discussed in class? Is it better? Explain your answers in short clear sentences.

  Write a program that converts a temperature

Write a program that converts a temperature given in Celsius to Fahrenheit. Test the program by performing a compile-time initialization of 32.

  Write a method called writenums

Write a method called writeNums that takes an integer n as a parameter and prints to the console the first n integers starting with 1 in sequential order, separated by commas. For example, consider the

  Expain what is runtime polymorphism

Expain What is runtime polymorphism in java programming?

  Convert a binarystring into a decimal number

Write the bin2Dec(String binaryString)method to convert a binarystring into a decimal number - Implement to throw a NumberFormatException

  Create a student object based on the information given

You will then attempt to open the file, create a Student object based on the information given in the file and read the student's essay from the file.

  Define an adt for character strings.

Define an ADT for character strings. Your ADT should consist of typical functions that can be performed on strings, with each function defined in terms of its input and output. Then define two different physical representations for strings.

  Implement a stack in javascript

The Pop function should always return the element on the top of the stack and at the same time removing it from the top of the stack.

  What is the minimal total weight of cylinders

A scuba diver uses a special equipment for diving. He has a cylinder with two containers: one with oxygen and the other with nitrogen. Depending on the time he wants to stay under water and the depth of diving the scuba diver needs various amount of ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd