
Wait if he cant do this simple task ..mwaambie is time to have a serious reflection ..this is elementary OOP i did this exact question in an exam (dont ask if i nailed it).. plus the lecturer needs to be more challenging ..am sure you can google this answer ... Else Ay devs am sure you are more than willing to flex your coding skills, so lets make this interesting ...how would you execute this? On Tue, Apr 3, 2012 at 8:09 AM, Gate Keeper <mohasq@gmail.com> wrote:
Skunks,
Ass 2. Unit code: Cs012 Time: Due April 3rd 2012, 9:30A.m
1. Write a complete java program that makes use of class called employee that will be used to capture employee id, name, salary and allowance and compute gross salary. Overload the plus operator such that if employee1 and employee2 were objects of the type employee, the employee1 and employee2 will be legal and would add the basic salary allowances and gross salary of the 2 employees. Also overloaded the equality operator such that it can be used in the main method to check if 2 employees have the same numeration based on the gross salary 2. Write a function called ‘divide’ that accepts two integers and computes and returns the first integer divided by the second e.g 5/2 gives 2.5. the program should generate an error if the second integer is zero.
Skunks, I got a college guy who can't understand that I do networks and sys administration not programming. Programmers . Especially Q 1.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- GG