setter and getter function

Jan 2, 2011 at 6:23am
Hi....please someone help me in this code.i have a PC problem.
help me in solving this code.thanx in advance.



Detailed Description:

• Employee ID and grade should be of type integer. Employee name should be of type string.
• Constructor should initialize employee ID and grade with value zero and employee name with value NULL.
• For assigning or extracting values from private data members, you must use getter and setter functions.
• Declare a public member function named calculate which will calculate the net salary of the employee according to his/her grade.
• Formula for calculating actual salary is (Basic Salary) + 45% of basic salary.
• If the grade of employee is 17, then the basic salary is 15,000.
• If the grade is 18, then the basic salary is 20,000 and if grade is 19 then the basic salary is 25,000.

Sample Output 1

Please enter employee ID : 001
Please enter employee name : Mohammad Ali
Please enter employee grade : 17

The net salary of Mohammad Ali is Rs.21750



Sample Output 2

Please enter employee ID : 2
Please enter employee name : Aslam Khan
Please enter employee grade : 19

The net salary of Aslam Khan is Rs.36250
Jan 2, 2011 at 6:30am
You just want us to give you the code?
Jan 2, 2011 at 6:41am
yes...i want its solved solution...!
Jan 2, 2011 at 7:38am
And why would we do that for you, when it is clearly some sort of assignment for you to do yourself?
Jan 4, 2011 at 5:28pm
what you wanna say?will you help or not?
Jan 4, 2011 at 5:33pm
Why don't you give me $100 first, then I'll see if I want to bother.
Jan 4, 2011 at 6:22pm
LOL, September will never end.
Jan 5, 2011 at 4:58pm
are you begger?...duffer.nai te naa si..:@
Topic archived. No new replies allowed.