Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Starting Out with Java Fr × pdf 3. TeamLeader Class In a particular factory, a t

ID: 3725482 • Letter: S

Question

Starting Out with Java Fr × pdf 3. TeamLeader Class In a particular factory, a team leader is an hourly paid production worker that leads a small team. In addition to hourly pay, team leaders earn a fixed monthly bonus. Team leaders are required to attend a minimum number of hours of training per year. Design a TeamLeader Programming Challenges 699 class that extends the ProductionNorker class you designed in Programming Challenge 1. The Teamteader class should have fields for the monthly bonus amount, the required num- ber of training hours, and the number of training hours that the team leader has attended. Write one or more constructors and the appropriate accessor and mutator methods for the class. Demonstrate the class by writing a program that uses a TeamLeader object. 4. Essay Class Design an Essay class that extends the GradedActivity class presented in this chapter. The Essay score can be up to 100 and is determined in the following manner: class should determine the grade a student receives for an essay. The student's essay Grammar: 30 points

Explanation / Answer

public class TeamLeader extends ProductionWorker{
private double monthlyBonus;
private int requiredTrainingHours;
private int trainingHoursAttended;

public TeamLeader(double houlyPay,double monthlyBonus, int requiredTrainingHours, int trainingHoursAttended) {
super(houlyPay);
this.monthlyBonus = monthlyBonus;
this.requiredTrainingHours = requiredTrainingHours;
this.trainingHoursAttended = trainingHoursAttended;
}

public double getMonthlyBonus() {
return monthlyBonus;
}

public void setMonthlyBonus(double monthlyBonus) {
this.monthlyBonus = monthlyBonus;
}

public int getRequiredTrainingHours() {
return requiredTrainingHours;
}

public void setRequiredTrainingHours(int requiredTrainingHours) {
this.requiredTrainingHours = requiredTrainingHours;
}

public int getTrainingHoursAttended() {
return trainingHoursAttended;
}

public void setTrainingHoursAttended(int trainingHoursAttended) {
this.trainingHoursAttended = trainingHoursAttended;
}
  
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote