Examlex

Solved

Suppose You Are Developing a Payroll Application That Computes and Displays

question 75

Multiple Choice

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
}
}


Definitions:

Ego

In Sigmund Freud’s theory, the structure that begins to develop in response to the fact that instinctual demands of the id are not always immediately met. The ego develops to curb the desires of id so that the individual does not suffer any unpleasant consequences.

Reality Principle

A psychoanalytic concept involving the ability of the mind to assess the external world and act upon it accordingly, often in contrast to the pleasure principle.

Right and Wrong

Fundamental concepts relating to ethics and morality, guiding behavior as acceptable or unacceptable.

Related Questions