This is the first post to me and I hope that you will help me
Complete the following tasks in Java using NetBeans.
Create a class Employee.
In class Employee, add the ID, name, date of birth and salary as data members of the appropriate types.
Create a method called raise that will return nothing and receive an integer number as an argument. This method will use the argument it receives as a percentage for employee’s raise and change its salary according to that. For example if the integer argument value was 10 then the employee is receiving a 10% raise and hence if his/her salary is 10,000 SAR the new salary will become 11,000 SAR.
Finally write a method print that will print all the employees data in a single line separated by ‘-‘.
To test your class you will need to create a new class with a main method and create at least three different objects with different data and uses the two methods above to update the salary and print the information of the employees.
Technically its your second, as you posted the same thing twice. Your other thread has been locked as a result. I highly recommend a) reading Announcements - What's Wrong With My Code? b) Don't mark your thread solved (unless it has been solved) c) Don't dump your homework on the forums - post your attempt and ask a specific question...this thread may be locked in the near future as a result.
This is the first post
In the case of multiple posts, the web site's slow response may be causing some to press the "Post" button twice. I've gotten the original post plus an update even after pushing the "Post" button once. The site does seem more responsive at the moment, however. It comes and goes.
Agreed, but I don't think this is a case here, in which both post were in different forums with different titles, but identical content.
Originally Posted by GregBrannon