Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

help

Thread view: 
Eric Wolfe - 07 Nov 2007 05:44 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.