Question
Develop a Java GUI program that will calculate tax for an employee ID and stores the tax information in a table called TaxResult of a
Develop a Java GUI program that will calculate tax for an employee ID and stores the tax information in a table called "TaxResult" of a MySQL database called "TaxManagementSystem". The fields of the TaxResult table are 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 tax rates. This file will be uploaded to the Supplementary Resources section of the i2 site. Your 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 should ask for three input values: ID, Financial Year and Taxable Income.
Tax Management Application ID: Financial Year: Taxable Income: Tax: - Calculate Search Update Delete
Step by Step Solution
3.43 Rating (140 Votes )
There are 3 Steps involved in it
Step: 1
First step is given below K Explanation Solution Given data Source code for TaxCalculatorjava import javaio import javatextDecimalFormat import javautilArrayList import javafxeventActionEvent import j...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started