Question:
problem statement: calculate salary?
daisy
2011-01-04 08:07:54 UTC
you are required to write a program which will calculate the salary of an employee according to his#her grade assigned by the employer. you must declare a class named CALSALARY whose private data members will be employee ID, employee name and employee grade. Also write a constructor, setter and getter functions for all private data members and a function that will calcilate the salary.
Three answers:
?
2011-01-05 06:03:54 UTC
In case it's C++, try reading a useful tutorial on classes and private/public variables, for example this one http://richardbowles.tripod.com/cpp/classes/class1.htm



Follow the examples, change them according to your needs and if you are still stumped, add a specific problem to your question.
Jim Maryland
2011-01-04 09:07:50 UTC
Y!A isn't a site to have your homework done for you. We'll gladly answer specific questions you have on programming topics but don't expect us to cheat for you. Your teacher is looking for what you know, not what the Y!A community knows.



** Edit **

1) Naming the class CALSALARY goes against the naming conventions I'm familiar with. A better name would be CalSalary.

2) You haven't stated which programming language you are using. In any case, take a look at the JavaBean link below. While not specifically the class you need to write, it is a good example of what you'll be writing.
2011-01-04 08:10:13 UTC
You are incorrect. I am not required to write a program, as this is YOUR homework, not mine. Please don't ask us to do your homework for you; that's crass, rude, and rather insulting. If you have a question about your assignment on a part you don't understand, we'll be happy to help.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...