Question
I need a Java Program please! Lab 5 Calculate the Gross Pay for an Employee (Inheritance) Purpose : Build an application to calculate Employees Gross
I need a Java Program please!
Lab 5 Calculate the Gross Pay for an Employee (Inheritance)
Purpose: Build an application to calculate Employees Gross Pay. Employees are paid every two weeks. Your company has two types of employees:
1. (H) - Hourly employees who are paid for every hour worked
2. (S) - Salary employees who are paid based on their salary
Problem: Build an application that would allow a user to calculate an Employees Gross Pay. The app will read the two input files (employee.txt and payroll.txt) the employees type (H, S), name (first and last), (hours worked and hourly pay rate or salary). The program then calculates and displays the employees name and gross Pay (see both inputs and outputs listed in the table below).
Language: JAVA (Object-oriented with Inheritance)
Data Requirements Input Fields Data-Tvpe Emplovee Info Employee.txt Employee # Last Name First Name Employee Type (H- Strin Strin Strin Char our Pavroll File Payroll.txt Employee # Strin Hourly Salai Hours worked Pay Rate Hours work Yearly Salary Double Currency or Double Processes Read the Input Files Determine Emplovee Tvpe Match Emplovee Record with Pavroll Calculate Gross Pay (See Calculations below Write the out file Output File Report.txt Employee # Employee's Full Name Hours Worked (Regular/ Overtime hours Paycheck breakdown (Regular Pay Overtime Pa Employee's Gross Pa Advanced 12,Smith,Seth.H, 10,Jones,Adam,S, 19,Davis,Chris,H, 13,Machado,Manny,S, Figure 1-Employee.txt (Input) Data Requirements Input Fields Data-Tvpe Emplovee Info Employee.txt Employee # Last Name First Name Employee Type (H- Strin Strin Strin Char our Pavroll File Payroll.txt Employee # Strin Hourly Salai Hours worked Pay Rate Hours work Yearly Salary Double Currency or Double Processes Read the Input Files Determine Emplovee Tvpe Match Emplovee Record with Pavroll Calculate Gross Pay (See Calculations below Write the out file Output File Report.txt Employee # Employee's Full Name Hours Worked (Regular/ Overtime hours Paycheck breakdown (Regular Pay Overtime Pa Employee's Gross Pa Advanced 12,Smith,Seth.H, 10,Jones,Adam,S, 19,Davis,Chris,H, 13,Machado,Manny,S, Figure 1-Employee.txt (Input)Step 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