Develop a Java GUI program that will calculate tax for an employee ID and stores the tax
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 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.
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale