Java class solutions for determining a person's salary for the month based upon
certain sales and salary. given.... I could not found any thing... |
Request for Question Clarification by
secret901-ga
on
19 Aug 2002 20:01 PDT
What exactly do you want to write? Are you writing a method to
calculate a person's monthly salary given a commission and an hourly
pay?
|
Clarification of Question by
slimg-ga
on
20 Aug 2002 10:17 PDT
I have to create a GUI to implement this program. Yes I have to
determine the methods that the class must implement. I hope this helps
because I am a little confuse myself. Thanks
|
Request for Question Clarification by
secret901-ga
on
20 Aug 2002 13:02 PDT
It would help if you define exactly it is that you're trying to do.
Your question is very vague and it is not possible to answer without a
well-defined question.
Do you want a listing of the methods that your class needs? What is
the class used for? Are you looking for an algorithm that determines
the salary, etc?
|
Clarification of Question by
slimg-ga
on
21 Aug 2002 16:39 PDT
What methods can I use for my class. The class will determine a
salesperson's monthly salary based upon sales. It should calculate the
monthly salary plus a percentage depending upon the amount of sales.
|
Clarification of Question by
slimg-ga
on
21 Aug 2002 17:31 PDT
I am also looking for an algorithm that determines the salary, etc. Appreciate it.
|
Request for Question Clarification by
secret901-ga
on
22 Aug 2002 02:42 PDT
Your class could have a method called computeSalary():
public int getSalary(int workHours, int workRate, int sales, int commission)
{
return workHours*workRate + sales*commission;
}
Hope that answered your question.
|
Clarification of Question by
slimg-ga
on
23 Aug 2002 08:45 PDT
Yes I would like a listing of the methods that my class needs and Yes
I am looking for an algorithm that determines the salary.
|