Question
A company pays its employees on monthly basis. The employees are of four types: Salaried employees are paid a fixed monthly salary regardless of the
A company pays its employees on monthly basis. The employees are of four types: Salaried employees are paid a fixed monthly salary regardless of the number of hours worked, contract employees are paid by the hour and receive overtime pay for all hours worked in excess of 40 hours, commission employees are paid a percentage of their sales and salaried-commission employees receive a base salary plus a percentage of their sales. Write a java program that creates objects of each employee, places those objects in an ArrayList, polymorphically invoking each objects calcSalary() method. For each object, print some identifying information and the salary.(Using For loops and java)
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