Question: Define a class Employee with the following attributes: firstName ( string ) , lastName ( string ) , socialSecurityNumber ( string ) , grossSales (
Define a class Employee with the following attributes:
firstName string lastName string socialSecurityNumber string grossSales double commissionRate double and birthDate of Date class.
Assume that payroll is processed once per month. Create a ArrayList of Employees to various employee objects. In the loop, calculate the paid roll for each Employee. Add $ to the person's payroll if the current month is the month in which the Employee's birthday occurs.
Validate the social security format is valid ######### where # is a digit and should be unique in the array.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
