Explore BrainMass
Share

Java Programming: Payroll Program Example

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

1. Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked.

2. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered as the employee name, the application should terminate. Make sure the program maintains all the functionality required in previous assignments and your source code is readable and well documented.

For right now, you just need to create a single instance of the class file and use the getters/setters to set and get the information.

I have attached the first part of this Payroll Project, just need to add the above to this program.

© BrainMass Inc. brainmass.com March 21, 2019, 1:22 pm ad1c9bdddf
https://brainmass.com/computer-science/java/java-programming-payroll-program-example-94421

Attachments

Solution Preview

Check attachment.
Make sure you compile Employee.java and then payroll.java
Thanks

Please follow the following steps.

Extract zip files,

Step 1: ...

Solution Summary

A Java program is provided.

$2.19