Google Answers Logo
View Question
 
Q: Learning Java ( No Answer,   2 Comments )
Question  
Subject: Learning Java
Category: Computers
Asked by: slimg-ga
List Price: $2.00
Posted: 19 Aug 2002 19:53 PDT
Expires: 18 Sep 2002 19:53 PDT
Question ID: 56390
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.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Learning Java
From: laurence-ga on 20 Aug 2002 19:42 PDT
 
Hi

Are you saying that you might have some data in the form
SalesPerson  Month
Subject: Re: Learning Java
From: laurence-ga on 20 Aug 2002 19:46 PDT
 
Try that again....
Hi 
 
Are you saying that you might have some data in the form 
SalesPerson  Month     Sales   BaseSalary
John         June 02   10000   5000
Mary         June 02   6666    5000

And from this table of data that you will be collecting you'll need to
calculate their "new" salary, a la apply a formula like BaseSalary +
Percentage of Sales?

If so
they a) set up a database you can link to via ODBC
b) Search the next for some Java VLookup code

then you can have your applet call the fields and do the maths.
http://www.codeguru.com/java/tij/tij0169.shtml
has some nice code where they lookup some database fields via vlookup
so changing the SQL string in their code should be easy

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy