Results 1 to 3 of 3
  1. #1
    JavaNewbieI is offline Member
    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Post Help me please i dont know how to do this . Im using Eclise .

    Case Study

    Design program PayrollSystem that will encode and print report of a payroll. Save employee's record in a EmpRecord.txt file with the following format:

    deptCode, empno, lastName, firstName, numHours, ratePerHour

    Retrieve it when printing a report. Use array approach on your solution. Sort according to department name then by employee's name. Generate total per each department. Generate PayrollReport.txt file when printing the summary report.

    Sample Input/Output:

    Main Menu

    1. Enter Employee Record
    2. Print Report
    3. Quit

    Enter choice: 1


    Add Employee

    Enter deptcode [ACT, IT, PUR]: pur
    Enter employee number: 3456
    Enter last name: Cruz
    Enter first: Ana
    Enter number of hours: 40.0
    Enter rate per hour: 200.00

    Save[Y/N]?: y
    Continue[Y/N]?: N

    Add Employee

    Enter deptcode [ACT, IT, PUR]: it
    Enter employee number: 6578
    Enter last name: Santos
    Enter first: Maria
    Enter number of hours: 20.0
    Enter rate per hour: 300.00

    Save[Y/N]?: y

    Continue[Y/N]?: y

    Add Employee

    Enter deptcode [ACT, IT, PUR]: pur
    Enter employee number: 9876
    Enter last name: Valdez
    Enter first: Edgar
    Enter number of hours: 10.0
    Enter rate per hour: 450.00

    Save[Y/N]?: y
    Continue[Y/N]?: y

    Add Employee

    Enter deptcode [ACT, IT, PUR]: ACT
    Enter employee number: 1234
    Enter last name: Dadulla
    Enter first: Kevin
    Enter number of hours: 40.0
    Enter rate per hour: 100.00

    Save[Y/N]?: y

    Continue[Y/N]?: n

    Salary Report

    Department: Accounting

    EmpNo Name RatePer Hour Number of Hours Total
    6578 SANTOS, Maria 100.00 40 P 4,000.00
    TOTAL P 4,000.00


    Department: Information Technology

    EmpNo Name RatePer Hour Number of Hours Total
    1234 DADULLA, Kevin 300.00 20 P 6,000.00
    TOTAL P 6,000.00

    Department: Purchasing

    EmpNo Name RatePer Hour Number of Hours Total
    3456 CRUZ, Ana 200.00 40 P 8,000.00
    9876 VALDEZ, Edgar 450.00 10 P 4,500.00
    TOTAL P 12,500.00

    OVERALL TOTAL P 22,500.00








    Criteria for Grading:

    1. Input/Error Validation 10%
    2. Use of Arrays 30%
    3. Shorter Codes 20%
    4. Structured program execution 30%
    5. Program Documentation/Indentation 10%

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: Help me please i dont know how to do this . Im using Eclise .

    No one will do this for you of course, and no one can help you if you only post the assignment but don't show what you've done or ask a specific question. So please ask an answerable question so that we can help.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Help me please i dont know how to do this . Im using Eclise .

    Kindly go through the Forum Rules, particularly the third paragraph. Also go through Guide For New Members and BB Code List - Java Programming Forum - Learn Java Programming and edit your post accordingly. To change the subject line, first click "Edit Post" and then click "Go Advanced"

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 2
    Last Post: 10-31-2012, 01:24 AM
  2. Dont know if you have it yet Competitions?
    By CodeMonkeyAlx in forum Suggestions & Feedback
    Replies: 0
    Last Post: 09-06-2012, 09:20 PM
  3. Dont know where to srart!
    By Samuel Bridgman in forum New To Java
    Replies: 2
    Last Post: 08-16-2012, 07:12 PM
  4. Help. i dont know where to even start.
    By kiddCOWBOYY in forum New To Java
    Replies: 21
    Last Post: 03-20-2012, 07:09 PM
  5. Eclise bug?
    By JosAH in forum Eclipse
    Replies: 9
    Last Post: 06-26-2010, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •