Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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 department

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago