help with pay calculation program

This is a discussion on help with pay calculation program within the C++ Programming forums, part of the General Programming Boards category; i know it will look scary the first time you look at the question but please take your time, help ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    1

    Unhappy 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.

    Task.


    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. #2
    Registered User
    Join Date
    Feb 2003
    Posts
    12
    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. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    No assignment requests, Post your current work.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  2. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 08:48 AM
  3. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 04:23 PM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM
  5. willing to pay for University level C++ Program
    By need help in forum C++ Programming
    Replies: 6
    Last Post: 03-11-2002, 11:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21