Calculate tax for the employees of a company called xyz

Assignment Help Computer Engineering
Reference no: EM132218538

Write a Java program that will calculate tax for the employees of a company called XYZ. The main menu of the tax calculation program is as follows.

Welcome to Tax Management System of XYZ

Please select one of the following options:
1. Calculate tax
2. Search tax
3. Exit

When 1 is selected then the program will calculate the tax of an employee based on the annual income of the employee and tax rates on the income. The tax rates on the income is stored in a file called taxrates.txt. The program needs to read the taxrates.txt file and store the information in proper data structure. If the taxrates.txt file does not exist in the directory of the source code then the program should ask to provide the taxrates.txt file as an input. The format of the taxrates.txt file is as follows.

Taxable IncomeTax on Income
0 - $18,200 0
$18,201 - $37,000 19c for each $1 over $18,200
$37,001 - $87,000 $3,572 plus 32.5c for each $1 over $37,000
$87,001 - $180,000 $19,822 plus 37c for each $1 over $87,000
$180,001 and over $54,232 plus 45c for each $1 over $180,000

The program will take user inputs on Employee ID (4-digit number) and the annual income of the employee (floating-point number with two decimal places). Based on the annual income of the employee the program will then calculate the tax (using the information in taxrates.txt file) of the employee. For example, if the annual income of an employee is $100000.00 then the tax of the employee=19822+(100000 - 87000)*0.37= 20303.00.

After calculating the tax of an employee the program will then write the Employee Id, taxable income and tax into a file called taxreport.txt. The format of the taxreport.txt file is as follows.

Employee IDTaxable IncomeTax
1111 100000.00 20303.00
2222 90000.00 19933.00

Once the tax calculation is done for one employee then the program will ask if XZY wants to calculate the tax for another employee, if yes then the above process will continue again. The program will calculate the tax for as many employees as XYZ wants. However, if XZY does not want to calculate the tax for another employee then main menu will be displayed.

When 2 is selected then the program will search the tax for an employee using the employee id in the taxreport.txt file. However, if the taxreport.txt file does not exist in the directory of the source code then the program should ask to provide the taxreport.txt file as an input.

If the taxreport.txt file contains the multiple tax for the same employee then the program will get the latest tax amount of that employee. If the taxreport.txt file does not contain the employee id then the program should give an warning message that the taxreport.txt file does not contain the tax of that employee.

Once searching tax (based on employee id) is done for one employee then the program will ask if XZY wants to search tax for another employee, if yes then the above process will continue again. The program will search tax for as many employees as XYZ wants. However, if XZY does not want to search tax for another employee then main menu will be displayed.

When 3 is selected then the program will exit.
File read and write operations need to be done properly. You need to use proper data structure. Input validation also needs to be done.

Task 2: Display the records of clusters

A clustering technique called "Unique Neighborhood Set Parameter Independent Density-Based Clustering with Outlier Detection" (PIDC-O) is applied on a dataset having 450 records and two attributes (X, Y). The number of clusters produced by PIDC-O from the dataset is four namely Cluster1, Cluster2, Cluster3 and Cluster4. A text file (cluster.txt) that contains the clusters will be uploaded into the subject interact site soon. For better understanding, the structure of the text file is discussed using the table below.

X

Y

Cluster

2

4

Cluster1

6

8

Cluster2

7

8

CLuster2

3

4

Cluster1

2

5

CLuster1

3

5

Cluster1

7

9

Cluster2

2.5

4.5

Cluster1

6.5

8.5

Cluster2

The number of records in the above table is nine, the number of attributes is two (X,Y) and the number of clusters is two (Cluster1, Cluster2) whereas the cluster.txt in the subject interact site will have 450 records, two attributes (X,Y) and four clusters (Cluster1, Cluster2, Cluster3, Cluster4). The sample output on the above table is shown below. 

Write a Java Graphical User Interface (GUI) program that will read the cluster.txt file and will display the records of the clusters in cluster.txt file in GUI. The records in a particular will be displayed using a single color. Add legend for each cluster in the GUI, so that the clusters can be easily identified.

Task 3: Font Tester

Write a GUI program that allows a user to test different fonts, font styles, and font sizes within a window. Provide 10 font names of your choice for the user to select within a combo box. Also provide an option for the user to select one of the following font sizes via selection from a combo box: 8, 12, 16, 24, 30, 36, 42, 48. 56. In addition, provide options to display the text as bold and/or italic using check boxes. If no check boxes are selected, the text should be displayed in regular font. The text for display/testing should be "Programming is fun" and is required to update dynamically whenever the font name, font size or font style changes.

Reference no: EM132218538

Questions Cloud

Create an erd the relationships between entities : Create an ERD that represents the entities, attributes, the relationships between entities, and the cardinality.
Create a powerpoint presentation of the final sponsor : For your Final "Paper", you will create a Final Sponsor Presentation. You have been hired by Aetna to use big data to improve patient health.
Find the mean marks of all 40 students : The average marks of 39 students of a class is 50 . the marks obtained by 40 students are 39mpre than the average marks of all the 40 students.
Briefly describe the osi reference model : Briefly describe the OSI reference model and the TCP/IP networking model, use diagrams to show the relation between both these models.
Calculate tax for the employees of a company called xyz : Write a Java program that will calculate tax for the employees of a company called XYZ.
Explain evolving market regimes and outcomes : Identify and explain evolving market regimes and their outcomes.
Ethics in infosec of the staff of information security : COIT20263 : The measures that the Information Security Division should take to prevent all staff members of NTN from handling information unethically.
How to develop financial statements : How to develop financial statements? How to develop a Balance Sheet, Profit and Loss Statement and Cash Flow Statement
Find the effective rate of the compound interest : Find the effective rate of the compound interest rate or investment. (Round your answer to two decimal places.)

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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