الشوق عطري
02 - 11 - 2009, 22:17
السسسسلام عليييييييكم
أخبآركم وش علووومكم ..
انآ ماعرفت احل هالسؤال .. تقدرون تسآعدوني فيييه ..؟
وترسلون لي الحل بالرسال خاصه .. لاهنتو ...
A Company has a lot of employees. Each employee has own personal information, his department, his salary and number of experience years. His manger can change his department, so it is not fixed. Also, his salary is incremented by 5% if and only if his experience years incremented. [/SIZE
]• [SIZE="3"]Extract the attributes and methods
• Provide a parameterized constructor that initializes the attributes. Be sure that the salary is not negative value.
• Provide a destructor that prints :
"company have not this employee now"
• Add member function that calculates annual salary.
• Test your program.
أخبآركم وش علووومكم ..
انآ ماعرفت احل هالسؤال .. تقدرون تسآعدوني فيييه ..؟
وترسلون لي الحل بالرسال خاصه .. لاهنتو ...
A Company has a lot of employees. Each employee has own personal information, his department, his salary and number of experience years. His manger can change his department, so it is not fixed. Also, his salary is incremented by 5% if and only if his experience years incremented. [/SIZE
]• [SIZE="3"]Extract the attributes and methods
• Provide a parameterized constructor that initializes the attributes. Be sure that the salary is not negative value.
• Provide a destructor that prints :
"company have not this employee now"
• Add member function that calculates annual salary.
• Test your program.