Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please read through the assessment background and then provide Java code for Task A The Human Resources (HR) department of a superstore needs an application
Please read through the assessment background and then provide Java code for Task A
The Human Resources (HR) department of a superstore needs an application for managing payroll (calculating employees' income tax, the wage bill for each department and producing reports). The superstore has three (3) departments as shown in Table 2, and each department has several employees, as shown in Table 1). The application should calculate the level of income tax based on Table 3 . Table 1: Sample employees' data. Table 2: Somple departments' data. Table 3: Tax Rate (https://www.gov.uk/income-tax-rates). Design and build an application that requires the user to input the payroll data via the console/command line and store it in an appropriate internal structure. There is no requirement for this data to be preserved after the application is closed. You will need to consider what the application outputs to the user to demonstrate the results of each task below. You should provide the user with a means to close the program once operations are complete. Your application should be able to perform the following tasks given the scenario above: Task A: Write Java code for the tasks given below. 1. Fetch department data (i.e. name and address) and store in an appropriate data structure. Note: department ID should be auto-incremental as shown in Table 2. 2. Fetch employee data (name, department ID and gross salary) and store in an appropriate data structure. Notes: (1) employee ID should be auto-incremental (2) application should show appropriate error message if the employee's department ID entered does not exist. 3. Sort all employees by salary (lowest salary first) 4. Sort all employees by departmentStep by Step Solution
There are 3 Steps involved in it
Step: 1
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