Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is java problem Extra Credit: Lab 6c [25 Points]: Object Oriented Programming A company has the following types of employees: programmers, and testers. This
This is java problem
Extra Credit: Lab 6c [25 Points]: Object Oriented Programming A company has the following types of employees: programmers, and testers. This will be represented by the following Java class hierarchy: Employee Programmer Tester Employee must be an abstract class that represents the notion of an employee. It has an abstract method called work) that the classes Programmer and Tester will provide an implementation for. A Programmer writes code, and the Tester is focused on testing it. First write the Employee class. It must be abstract, meaning the first line of the class declaration should public abstract class Employee f The Employee class contains functionality common to types of employees in the company. For example, all employees have a name and ID number. Write the constructor and get and set methods. The Programmer class must be a sub-class of Employee. A given programmer can write a certain number of lines of code per day, captured by an instance variable linesofcodePerDay. A programmer's work method returns the number of lines of code he/she wrote on a given day, which is a random number between 50% and 150% of line sofCodePerDay (some days are not as good as others, and some tasks are harder/easier than others). Use random number object. The Tester class is a sub-class of Employee. A given Tester can test a given number of lines of code per day, captured by an instance variable linesofCodeTestedPerDay. A tester's work method returns the number of lines of code he/she tested that day, which is a random number between 75% and 125% of line sofCodeTestedPetDayStep 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