public class Tester extends Employee
Originated for CS161 in 2015
modified by garethhalladay on 9/21/17
Constructor | Description |
---|---|
Tester(java.lang.String firstName,
java.lang.String lastName,
int averageLines) |
Explicitly invoke the Employee constructor.
|
Modifier and Type | Method | Description |
---|---|---|
int |
work() |
The tester tests between 75% and 125% averageLinesOfCode each day (captured by
the corresponding instance variable in the Employee class).
|
getAverageLinesOfCode, getFirstName, getLastName, randomBetween, toString
public Tester(java.lang.String firstName, java.lang.String lastName, int averageLines)
firstName
- the first name of the testerlastName
- the last name of the testeraverageLines
- the average lines of code a tester can testpublic int work()
Use the randomBetween method from the Employee class. This takes two arguments, the lower bound for the amount of code the tester can test, and the upper bound for the amount of code the tester can test.
work
in class Employee
Employee.randomBetween(double, double)