Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: can you help me ?

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy can you help me ?

    plz help me in this assignment
    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.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: can you help me ?

    Why the unusual formatting of your post?

    What have you tried? Do you have any specific questions about your assignment?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member Ganeprog's Avatar
    Join Date
    Jan 2014
    Location
    Chennai,India
    Posts
    80
    My Mood
    Love
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default Re: can you help me ?

    Hi Friend,

    It is easy only. Please try yourself. If you know the structure of java program clearly you can start the programming. First you start if any doubts or any issue you are facing please post here.

    Happy to help

    Thanks,

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: can you help me ?

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.