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

Make salary advice Use case Name: This use case begins when the admin staff want

ID: 3838983 • Letter: M

Question

Make salary advice Use case Name: This use case begins when the admin staff wants to make Brief Description: drivers' sala advice for CBA Admin staff, Driver Primary actors: Trigger: The admin staff starts preparing salary data for drivers Preconditions: I. Driver must exist 2. Completed work schedule of the driver must exist. Post-conditions: l. A salary advice was created for all drivers Main Success Scenario: Actor Action System Response 1.The admin staff requests Retrieve the completed work schedules of the to prepare salary advice month for drivers 3. Get the driver details assigned to schedules 4. Find the salary scale of the driver (See 4.a) 5. Prepare a salary advice with the total hours worked and the salary scale 6. Attach the salary advice with the driver 7 Send a copy to CBA and inform the driver Alternative flows (if any): 4.a. If the driver is casual, find the hourly rate of the casual driver

Explanation / Answer

public class EmployeeSalary
{

private String frstName;
private String lstName;
private double monthSalary;

public EmployeeSalary(String name, String name2, double salary)
{
frstName = name;
lstName = name2;
monthlySalary = salary;
}

public void setFrstName(String name)
{
frstName = name;
}

public String getFrstName()
{
return frstName;
}

public void setLastName(String name)
{
lastName = name;
}

public String getLastName() {
return lastName;
}

public void setmonthlySalary(double salary) {
monthlySalary = salary;
}

public double getmonthlySalary() {
return monthlySalary;
}

public double yearlySalary() {
double yearlySalary;
yearlySalary = (monthlySalary * 12);
return yearlySalary;
}

double yearlySalaryIncrease;
yearlySalaryIncrease = (((yearlySalary() * (0.1)) + yearlySalary()));
return yearlySalaryIncrease;
}

public void displayYearlySalaryIncrease() {
System.out.printf("%s %s = $%.2f ", firstName, lastName, yearlySalaryIncrease());
}

}

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