akosiraff

EmployeePayroll JAVA

Aug 11th, 2013
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/employeepayroll-java/
  3. 1) creates and implements a simple class 2) properly uses static variables, methods and constants, and 3) uses arrays to efficiently organize data
  4. This program will need to read in payroll data for a series of employees and compute the gross pay for each employee for the week. The program will need two classes.
  5. The first class named EmployeePayroll will represent payroll data for one employee for one week. With this data: 1) class constants for the weekend multiplier factors, 2) a class variable that maintains the number of employee objects created, 3) an instance double precision floating point variable containing the employee’s hourly pay rate, and 4) an instance integer array of hours worked for each day of the week for one employee
  6. This class should also contain the following methods: 1) a constructor that is supplied a string that contains one line of employee payroll data–the pay rate followed by the hours worked for seven days, 2) an instance method called computeGrossPay that returns the gross pay for that employee, 3) a toString method that returns a string representation of the object, 4) a class method employeeCount that returns the total number of employees.
  7. Saturday hours are paid at time and a half and Sunday hours at double time.
  8. The second class should contain the main method and should prompt the user for payroll data repeatedly. It should create an employee object using the constructor, display the object with toString and display the gross pay for that employee. You may choose whether to use input/output from the command-line or use JOptionPane dialog boxes.
  9. After all employees have been processed, the employeeCount method should be called to display the total number of employees.
  10. In addition to submitting the test plan, as was required in the first two projects, you should also submit a UML class diagram as part of the documentation for this project.
  11.  
  12. Download: http://solutionzip.com/downloads/employeepayroll-java/
Advertisement
Add Comment
Please, Sign In to add comment