WEEKLY PAY CALCULATOR
Design A windows application and write the code that will execute according to the program requirements in figure 4-104 and the Use Case definition in Figure 4-105. Before writing the code, create an event planning document for each event in the program.
Application title: Weekly Pay Calculator
Purpose: The weekly pay calculator Windows application computes the weekly pay for an hourly employee.
Program Procedures: From a window on the screen, a payroll clerk enters the total minutes an employee worked in a week and the hourly pay rate. The program displays the weekly pay for the employee.
Conditions: 1. The payroll clerk must be able to enter the total minutes worked during the week and the hourly pay rate.
2. The company name (Western Distribution) and the picture (Payroll found at scsite.com/vb2010/ch4/images) will be displayed throughout the entire process.
3. After entering the total minutes worked and hourly pay rate, the payroll clerk clicks the weekly pay button.
4. The weekly pay is displayed in currency format together with the number of hours and minutes worked.
Restrictions: 1. The user can clear the total minutes worked, the hourly pay rate, the hours and minutes worked, and the weekly pay by clicking a clear button. He then can enter another employee’s data.
2. An exit button should close the application.
3. In this application, if hours worked is greater than 40, the hourly pay still applies.
USE CASE DEFINITION
- The windows application opens.
- The payroll clerk enters the total minutes worked by an employee and the employee’s hourly pay rate.
- The payroll clerk clicks the Weekly Pay button.
- The program displays the hours worked, the minutes worked, and the employee’s weekly pay.
- The payroll clerk can click the Clear button and then repeat steps 2 through 4.
- The user terminates the program by clicking the Exit button.
|Programming Language||Visual Basic|