Calculate tax for an employee

Assignment Help JAVA Programming
Reference no: EM133010002

Assessment - Database, Multithreading and Networking

TASK

Task 1: Tax Management Database Application

Write a Java GUI program that will calculate tax for an employee ID and will store the tax information in a table called "TaxResult" of a MySQL database called "TaxManagementSystem". The fields of the TaxResult table is ID (primary key and data type varchar), Financial Year (data type varchar), Taxable Income (data type double), and Tax (data type double).

The taxrates.txt file contains the tax rates which will be uploaded in the subject interact site. The program needs to read the taxrates.txt file and store the tax information in a proper data structure so that it can be easily used in tax calculation. The format of the taxrates.txt file is as follows:

Taxable Income Tax on Income

0 - $18,200 0

$18,201 - $45,000 9c for each $1 over $18,200

$45,001 - $120,000 $5,092 plus 32.5 cents for each $1 over $45,000

$120,001 - $180,000 $29,467 plus 37 cents for each $1 over $120,000

$180,001 and over $51,667 plus 45 cents for each $1 over $180,000

The GUI of the application is shown below. The GUI will be asking for three input values namely ID, Financial Year and Taxable Income.

When a user clicks on the "Calculate" button then tax will be calculated on the given taxable income and will be shown in the GUI as shown below and the ID, Financial Year, Taxable Income, and Tax will be stored in the TaxResult of the TaxManagementSystem database. Note that, if an ID already exists in the table then display a warning/appropriate message in the GUI. If the taxable income or financial year is null then GUI should display a warning/appropriate message.

Moreover, the application will have search, update and delete options as shown in the above GUI.

Search Operation: Using ID, a user can search for tax information for that ID. If the ID does not exist in the table then display an appropriate message in the GUI.

Update Operation: Using ID, the financial year and taxable income for that ID can be updated. If the ID does not exist in the table then display an appropriate message in the GUI.

Delete Operation: Using ID, the record for that ID can be deleted. If the ID does not exist in the table then display an appropriate message in the GUI.

Marks distribution:

Functionality

Presentation: Report with enough screen shots is submitted. The discussion on each screen shot is easy to read and understand.

Reference no: EM133010002

Questions Cloud

Do you view this attitude as positive or negative : What one attitude toward business today do you find most prevalent?
Significant risk to personal safety in the workplace : Which rules should be followed when there is a significant risk to personal safety in the workplace?
Preventing the escalation of workplace conflict : Identify three ways of preventing the escalation of workplace conflict.
Analyse how network attacks could be mitigated : Analyse how network attacks could be mitigated. Discuss tools to protect from the recent attacks. Recommend any two mitigation techniques to tackle network atta
Calculate tax for an employee : Write a Java GUI program that will calculate tax for an employee ID and will store the tax information in a table - application will have search, update
Key outcomes and key performance indicators : Develop measurable criteria which you will use to base your questions for the Individual appraisals on.
Explain the meaning of work-life balance in a workplace : Using an example identify three strategies that organisations may use to improve work-life balance among their employees? Which are likely to prove most effecti
Evaluate three decisions making styles : Using an example evaluate three decisions making styles that contributes to effective decisions. Explain the meaning of decision making.
Considering the international compensation approaches : Think yourself as an HR Manager of OPPO, China. Design the compensation package for Mr Niloy, considering the international compensation approaches and complexi

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a japplet

Create a JApplet that contains a JLabel and JButton. You'll create a JButton that will automatically change font typeface, style, and size when clicked by the user.

  Program that generates an array with 10 random integers

Write a program that generates an array with 10 random integers (1-999 inclusive). Include these methods: public static void displayArr(int[] arr)

  Code 2-dimensional array that stores the average scores

Instructions: Code a 2-dimensional (2D) array that stores the average scores for 2 football teams across 2 years. In a method called setAvgScores, prompt for the averages and store them in the 2D array which will be returned

  Write a method called alldigitsodds

Write a method called AllDigitsOdds that returns whether every digit of a positive integer is odd.

  Create a class with so-called boundarycells

You are to create a class with so-called BoundaryCells. Methods in the class throw exceptions under certain conditions - The constructor has two logical

  Initialized the array of words by an assignment statement.

modify the following program . The program from Lab 4 initialized the array of words by an assignment statement.

  Define a class to model linear equation of variables x and y

Define a class to model a linear equation of variables x and y in slope intercept form. A skeleton for this file is provided in the project pack.

  Construct a bulls and cows program for my intro java class

construct a Bulls and Cows program for my intro Java class. This program needs to perform the basic functions of the game (determining how many cows there are and how many bulls there are and tell the player when they win), but it also needs to offer..

  Question on dynamic array

Describe any feedback you received or any specific interactions you had. Discuss how they were helpful

  Displays a pie chart representation for percentage of staff

Write Java application that connects to database and display pie chart representation for percentage of staff in Stafftable that reside in reside in each state.

  Write a program that displays a drawing popular hangman game

Write a program that displays a drawing for the popular hangman game, as shown in Figure 15.32(c). draws a sketch for the hangman game.

  Write player classes that have certain behaviour

Write player classes that have certain behaviour. These classes will lead you along to implementing the players you will need for the project.

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