Explore BrainMass

Payroll Program in Java

A payroll program that calculates the employees weekly pay after employee's name, hourly rate, and number of hours worked. This must include a class to store and retrieve the employees's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information and a method within that class to calculate weekly pay. Once "stop" is entered as the employee name the application should terminate. There should be an error message that displays if negative numbers or text is entered for pay rate or hours worked. It needs to display a "$" at the left of the pay rate and the total weekly pay for hours worked.
I would appreciate this, I would like to see this program as I having trouble understanding some of the concepts.
It needs to compile.

Solution Preview

Please find the attached program Payroll.java which calculates payroll for employees given their name, ...

Solution Summary

The solution Java program (Payroll.java) calculates payroll for employees given their name, hourly rate and work hours repeatedly until stopped.