Purchase Solution

Payroll Program in Java

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

Solution Summary

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

Solution Preview

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

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C# variables and classes

This quiz contains questions about C# classes and variables.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Javscript Basics

Quiz on basics of javascript programming language.