Print Name __________________________
Signature __________________________
Print Name __________________________
Signature __________________________
PayRoll # 0 Lab
Individual/Team (1-2 Persons) Assignment
15 Points
| //////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////// // 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"; |
4] Your declarations shall be
| int
EmployeeNo; double
|
5] Write program which will do the following
Gross : $ 183.00
Tax : $ 54.90
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 ????.
|
written by ???? Employee No : 10001
Gross : $ 100.00
Employee No : 10002
Gross : $ 183.00
Employee No : 10003
Gross : $ 550.00
Employee No : 10004
Gross : $ 410.13
|
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.
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