# Thread: help with pay calculation program

1. ## help with pay calculation program

i know it will look scary the first time you look at the question but please take your time, help me solve this mess.....
cheers.

The program will enable a user to enter work details for an employee, validate some of these details, calculate pay and deductions, display the results and repeat this process until the user wishes to finish.

Description: Pay calculation program

Purpose: this program enables the user to enter work details for an employee, validate some of these details, calculate pay and deductions, display the results and repeat this process until the user wishes to finish.

Outline of steps to follow:

1. First the screen is cleared and the title of the program is displayed. A tax rate is then entered as a decimal fraction. This tax rate must lie between 0.20 and 0.30 inclusive. The the tax is outside the allowed range, then an error message is displayed and the user is then required to enter the tax rate again.

2. Next, the main process is started, which is to repeat the input, calculation and display cycle for each employee until the user enters a name = ‘X’ (see below) and this causes the program to end.

3. The following details are entered for an employee:
Employee Name (25 characters maximum)
Employee reference (8 characters maximum)
Standard hours worked (Decimal. Must be >=0 and <=40.0)
Standard pay per hour (Decimal. Must be >=0 and <=12.00)

If standard hours worked is outside the allowed range, then an error message is displayed and the user is required to enter again.

If pay per hour outside the allowed range, then an error message is displayed and the user is required to enter it again.

The program s to finish if the employee name is entered as X

4. The calculations to be performed are as follows:
Gross pay = (hours worked) * (pay per hour)
Tax = (Gross pay) * (tax rate)
Net pay = (Gross Pay) – Tax

5. The following details are displayed as the results on a fresh screen:

Employee Name
Employee Reference
Standard Hours worked
Standard pay per hour
Gross pay
Tax rate
Tax
Net pay

All output values are to be displayed on the screen to two decimal places
The above display must remain on the screen until the user presses a key

2. It seems like an assignment from some class and getting others to do the work for you. Do the work and if some problem in coding that you can not understand than post the specific problem.

3. No assignment requests, Post your current work.

Popular pages Recent additions