All of the work in this project is my own!  I have not left copies of my code in public folders on university computers. I have not given any of this project to others. I will not give any portion of this project to others taking this class. I realize that the penalty for turning in work that is not my own can range from an "F" in the class to dismissal from Trinity University. 

                                                                                             Print Name  __________________________

                                                                                              Signature   __________________________

                                                                                             Print Name  __________________________

                                                                                              Signature   __________________________
 


PayRoll # 0 Lab
Individual/Team (1-2 Persons) Assignment
15 Points


Set  Margins [ Left = 1; Right = .2; Top = .6; Bottom = .6; Select Document Title, Location,  Page Number, Page Total Black Text l]


1] Each and every program that you write this semester shall include a fully completed program comment box at the top. It shall be in the form illustrated below. Do not use any tabs!
 
//////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////
//                                         Payroll0.cpp                                     //
//  Purpose:                                                                                //
//                                                                                          //
//  Written By: Dr. Thomas E. Hicks                                 Environment:Linux       //
//  Date: 9/17/01                                                   Compiler: C++           //
//////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////

2] Each and every program that you write this semester shall include comment lines for defines and includes.
 
///////////////////////////////////// Includes ///////////////////////////////////////////
# include <iostream.h>

///////////////////////////////////// Defines ////////////////////////////////////////////

3] Write a program, called  PayRoll0.cpp, which starts out with the following commercial.
 
/////////////////////////////////// Commercial //////////////////////////////////////////
   system ("clear");
   cout << "                  PayRoll Calculation System\n";
   cout << "                         written by\n";
   cout << "                             ????\n\n";
Replace the ???? with your name(s).

4] Your declarations shall be
 
int 
   EmployeeNo;

double
   PayPerHr,
   HoursWorked,
   Gross,        // Total Money Earned [Time & Half For Over 40 Hrs]
   Tax,          // 30% Tax Rate
   Net;          // Take Home 

5] Write program which will do the following

6] The program will be compiled with the following line of code:
g++ PayRoll.cpp

Use  the following input data when testing the program

10001 5    20
10002 6    30.5
10003 10   50
10004 8.50 45.5
0

7] The program will be executed with the following line of code:
a.out

If you were to run the application on the screen, it must display information in the following format. Substitute your name for the ????.
 

PayRoll Calculation System
  written by 
????

Employee No  : 10001
Pay Per      : 5.00
Hours Worked : 20.00

Gross : $ 100.00
Tax   : $ 30.00
Net   : $ 70.00
 
 

Employee No  : 10002
Pay Per      : 6.00
Hours Worked : 30.50

Gross : $ 183.00
Tax   : $ 54.90
Net   : $ 128.10
 
 

Employee No  : 10003
Pay Per      : 10.00
Hours Worked : 50.00

Gross : $ 550.00
Tax   : $ 165.00
Net   : $ 385.00
 
 

Employee No  : 10004
Pay Per      : 8.50
Hours Worked : 45.50

Gross : $ 410.13
Tax   : $ 123.04
Net   : $ 287.09

8] The program works! Start a Windows 2000/NT/98/95/Me/XP system that has Visual Studio. Print it from within windows using Visual C++. Print this and every other program that you turn in this semester with a left margin to 1" and a right margin to .5". Make the font   New Courier 8.
 
             Visual C++ Printing: Page SetUp & Font Selection

9] Copy files PayRoll.cpp  to a floppy disk. Copy files PayRoll.cpp  to a second  floppy disk. Keep one of these disks as a backup.



10] Those Labs labeled "Individual Assignment" are to be done separately by each individual. Using a pen,  each individual is to print  his/her name at the top of this document in the space provided and sign it.  Those Labs labeled "Team Assignment" may be done as a team or individually. Using a pen,  each individual on the team is to print print his/her name at the top of this document in the space provided and sign it. Submit only one copy of team assignments!

Include the following in your wire-band binder:

A] Divider

B] Copy of this assignment sheet. Using an ink pen, print your name and sign this lab at the top.

C] PayRoll.cpp printout.

D] Disk containing the file