Suppose you are developing a payroll application that computes and displays weekly paycheck amounts for various employees. As a result of the design phase, the partial Employee class below is developed. Select the method header that best completes the class, according to the method comments. public class Employee
{
Private int hoursWorked;
/**
Computes the weekly salary for this employee.
@param hourlyRate the rate per hour earned by the employee
@return the weekly salary
*/
_________________________________________
{
// method body
}
}
A) public void computeSalary(double hourlyRate)
B) public double computeSalary(double hourlyRate, int hoursWorked)
C) public double computeSalary(double hourlyRate)
D) public double computeSalary(int hoursWorked)
Correct Answer:
Verified
Q66: You are designing a software solution for
Q83: During the implementation phase, which of the
Q88: When documenting discovered classes and methods during
Q93: Which of the following can be used
Q94: Given the following diagram showing class relationships:
Q95: When using UML to create state diagrams,
Q99: You are designing a software solution for
Q102: Suppose you are developing a payroll application
Q103: Suppose that the invoice-printing application from section
Q104: Suppose you are developing a payroll application
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents