Skip to content

Define a class named Teacher consists of the following attributes: name and hours worked. Add another constant named RATE = 30.00 per hour. Methods included in the class are:  computePay( ) – return salary based on numbers of hours worked multiply by RATE.  displaySalary( ) – received an object from class Teacher to display name, hours worked and salary obtained. In driver class named TestTeacher, create an array of 5 objects from class Teacher and call method displaySalary( ). #14

Description

@Peiruz

Someone please help me....

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions