CSCI201 CSCI/201 CSCI 201 PROJECT 3 PAYROLL SYSTEM Write a program that calculates gross wages for employees
    CSCI201 CSCI/201 CSCI 201 PROJECT 3 PAYROLL SYSTEM Write a program that calculates gross wages for employees CSCI201 CSCI/201 CSCI 201 PROJECT 3 PAYROLL SYSTEM Write a program that calculates gross wages for employees

CSCI201 CSCI/201 CSCI 201 PROJECT 3 PAYROLL SYSTEM Write a program that calculates gross wages for employees

$15.99

 CSCI 201 Computer Science I 1

 PROJECT 3 PAYROLL SYSTEM (Version 1)

Due Date: October 9, Tuesday

Objectives

To provide students with the experience of

 using standard functions, reference parameters, value parameters, files and selections to solve a problem.·

 designing and describing algorithms using structure chart.·

Problems

Write a program that calculates gross wages for employees. The program should ask the user to enter an employee’s ID, hours worked and hourly pay rate. It should then calculate the gross wage for that employee and store it with this employee’s information into another file. The program should allow the user to calculate wages as many times as they want. It should use the following functions:

 void getEmployeeInfor() should ask the user for an employee’s ID, pay rate and the hours worked.·

 double calcWage() should calculate one employee’s gross wage.·

 void printWages should print an employee’s ID, pay rate, hours worked and wage into another file·

Input Validation: Do not accept negative values for pay rate and hours worked.

Input

 Employee’s id and hours worked.·

Output

 Employee’s information including ID, hourly rate, hours worked and calculated gross wage.·

An Example of Test Run

The output of your program might look like this:

csci>a.out

Enter an employee's information by the order of ID number, rate, hours:

123450 12.5 -80

You must enter a non negative value. Try again!

123450 -12.5 80

You must enter a non negative value. Try again!

123450 12.5 80

Do you want to calculate another employee's gross wage? y

Enter an employee's information by the order of ID number, rate, hours:

123123 25.5 89.5

Do you want to calculate another employee's gross wage? y

Enter an employee's information by the order of ID number, rate, hours:

-123980 8.5 67

You must enter a non negative value. Try again!

123980 8.5 67

Do you want to calculate another employee's gross wage? n

The result is reported to the file "employeeWages.dat"

The file "employeeWages.dat" should have a similar format as follows:

ID Hourly Rate Hours Wage

------------------------------------------------------------

123450 12.50 80.00 1000.00

123123 25.50 89.50 2282.25

125689 8.50 112.50 956.25

Requirements

1. Design your algorithm first.

2. Develop a structure chart for the program that solves the problem.

3. Write the program according to the structure chart in step 1 and 2. It should include main function and other functions.

4. In your program, write necessary documentation for each function required for this problem. You should also include comments about all parameters. See how this should be done by following the “Requirements for Programming Project” in D2L course page.

5. You should test each function separately. Before you test the program, design test data for all possible cases. Explain why you choose these data.

6. Insert comments in the program so that it can be read easily. Don’t forget to include your name, section, csci account, seat number, file location and a description of the purpose of this program. You do this on the top of your program.

7. For other requirement, please see “Requirements for Programming Project” posted on D2L course page.

CSCI 201 Computer Science I 3

What to turn in

  • A typed or word-processed description of your algorithm.
  • A nicely drawn structure chart.
  • Test data with explanation.
  • The source file of the program.
  • The script file from several test runs by your test data.
  • A user document (please see “Requirements for Programming Project” posted on D2L course page).

 

My tutorial contains C++ Program - Detailed comments

If you have more questions, please contact me via email support@extutorials.com

I will help you any time

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

  • CSCI 201 PROJECT 3.zip [48.4KB]
    • Payroll System.doc [46.5KB] [ preview ]
    • payrollSystem.cpp [1.8KB] [ preview ]

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B