I need some guidance getting started on this project:
----------------------
Implement a class Employee as follows:
Constructor: An object of class Employee will have the hourlyRate as
an instance field.
Methods
o basePay(int hours): Calculates the amount paid for the first 40
hours.
o extraPay(int hours): Calculates the amount paid for all the hours
worked after the first 40 hours. The pay for extra hours is double the
pay for regular hours.
o totalPay(int hours): Calculates the total pay.
Write a short tester program that allows the user to input any
employee to print the total pay. Make sure when you test your file to
enter employees that have worked:
- less than 40 hours
- exactly 40 hours
- more than 40 hours
----------------------
any help at all is greatly appreciated. thanks.
Patricia Shanahan - 07 Nov 2007 05:55 GMT
> I need some guidance getting started on this project:
> ----------------------
> Implement a class Employee as follows:
...
See http://home.earthlink.net/~patricia_shanahan/beginner.html
for some general advice on getting started.
Patricia
Roedy Green - 07 Nov 2007 07:27 GMT
>Write a short tester program that allows the user to input any
>employee to print the total pay. Make sure when you test your file to
>enter employees that have worked:
see http://mindprod.com/jgloss/homework.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com