Details:
Payroll Program that:
Displays text that requests the user to input the name of the employee, the hourly rate, and the number of hours worked for that week. The application should then print out the name of the employee and the weekly pay amount. In the printout, display the dollar symbol ($) to the left of the weekly pay amount and format the weekly pay amount to display currency.
The application must continue to request employee information until the user enters “stop” as the employee name.
The application should be programmed to check that the hourly rate and
number of hours worked are positive numbers.
If either the hourly rate or the number of hours worked is not a positive value, the application
should prompt the user to enter a positive amount.
The application uses a class to store and retrieve the employee'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 the weekly pay.
Once stop is entered as the employee name, the application should terminate.
10 years ago
Purchase the answer to view it

- payrollprogram.zip