Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 5th, 2013, 11:02 AM
slowmotion88 slowmotion88 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 1 slowmotion88 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 39 sec
Reputation Power: 0
Smile Homework - Print salary

I need help because i don't know too much about java,its my first class of, but if you tell me which is best way to do it i will be greatfull
My teacher is trying to make us do a java project, using:

Create the program based on the following diagram. The program should calculate the salaries of all employees and print it on the screen. The salaries of the workers are calculated as follows:

salaryPerHour * workTime

The salaries of the managers are calculated as follows:

productsSold * rewardPerProduct + bonuses

Set the values of these attributes for each employee instance according to your judgment.

4 classes to do:
Employee
name:String
+calculatesalary():int

EmployeeList
employees:Vector
+allemployeesSalary():int
+getCount():int

Manager
bonuses
productSold
rewardPerProduct
+calculateSalary():int

Worker
salaryPerhour
workTime
+calculatesalary():int

with this 4 classes i could not print the count, please Help a young lady begginer in this code world
thank you

Reply With Quote
  #2  
Old February 5th, 2013, 02:30 PM
Aurum84 Aurum84 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2012
Posts: 74 Aurum84 User rank is Sergeant (500 - 2000 Reputation Level)Aurum84 User rank is Sergeant (500 - 2000 Reputation Level)Aurum84 User rank is Sergeant (500 - 2000 Reputation Level)Aurum84 User rank is Sergeant (500 - 2000 Reputation Level)Aurum84 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 23 h 5 m 49 sec
Reputation Power: 17
Hi,

can you provide us with the code you already fabricated? Looking at the description your teacher expects you to use inheritance. In that case you should look again at the base class : Employee

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Homework - Print salary

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap