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 3 of 3

Thread: cant solve the question by my self..

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    2
    My Mood
    Cheeky
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default cant solve the question by my self..

    1. Design a Java Application project for maintaining Employee Information in a company. Follow the instructions below for further details.
    (i) Create a class named EmpDetails.
    (ii) Declare variables emp_name as String (To hold employee name), emp_id as Integer (To hold employee id), emp_desig as String (To hold designation of the employee) and basic as Integer (To hold the basic salary of the employee).
    (iii) Define and declare a method named read_data( ) that reads the name, id, designation and basic salary of the employees from the user.
    (iv) Define and declare a method named salary( ) that calculates the gross salary of all the employees from the basic salary. (Gross Salary = Basic Salary – EPF – Socso where EPF is 11% of Basic Salary and Socso is 1% of Basic Salary)
    (v) Define and declare a method named show_data( ) that prints the name, id, designation and gross salary of all the employees to the user.
    (vi) The program should enable the user to have the database of atleast 25 employees.
    (vii) Create another class named Employee and declare the main( ) method in it.
    (viii) Create object for EmpDetails in the main( ) method and use the same to access the methods.
    (ix) Present the output in a table neatly.


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

    Default Re: cant solve the question by my self..

    What have you done so far with this assignment?
    Start with a small step and add to it.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: cant solve the question by my self..

    Read the forum rules...double (or in your case triple) posting is not allowed. Your other posts have been deleted.

    We don't do your work for you, and in fact just the act of asking is academic dishonesty capable of getting you kicked out of school - assuming this is a school assignment. If you wish to make use of these forums, I suggest you make an attempt and ask a specific question about what you don't understand and the code you have.

Similar Threads

  1. How i can solve this question? help me please ...
    By thecraetiveman in forum Java Theory & Questions
    Replies: 49
    Last Post: May 8th, 2012, 02:43 PM
  2. please help solve this question
    By thatguy in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 29th, 2012, 06:53 PM
  3. using while to solve this question !
    By deathpain in forum Java Theory & Questions
    Replies: 2
    Last Post: November 19th, 2011, 04:46 PM
  4. please solve this question on html:multibox?
    By tejz in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: February 13th, 2010, 03:18 AM