Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have two classes Employee Class that contains the employee's information and employee's hourly rate and I got the pay period class that contains the
I have two classes Employee Class that contains the employee's information and employee's hourly rate and I got the pay period class that contains the hours work per week and taxes of the employee. I have created an arrayList employees in my main class but how can I create an array list of payperiod inside each employee. Anyway am doing java
Assignment #8: Use ArrayLists In this assignment we will store all the data we've been entering in an array. Due to Java's inability to dynamically resize arrays, we will use arraylists. Note that for this to work correctly we will need TWO array lists. 1. An array list of employees 2. An array list of PayPeriods INSIDE each employee. Be SURE to new your inner array in your employee constructor and create appropriate getter and setter methods on the OUTER class Input Expected: Same as Assignment #6 Sample Run: Inputs: Enter Employee Id: 123456 Enter Employee first name: Larry Enter Employee last name: Schoeneman Enter # of hours worked this week: 50 Enter hourly rate of pay: $10.00 Would you like to enter another employee? (Y/N) Output: (Complete list of employees) Employee Id : 123456 Last Name: Schoeneman First Name: Larry Week of 6/11/2020 (use current date) Hours Worked: 50 Hourly Rate: $10.00 Regular Pay: 40 hours at $10/hr: $400.00 Overtime Pay: 10 hours at $15/hr: 150 Gross Total: $650.00Step 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