CIS170C All Assignments CIS170C All Assignments | Page 8
b. Gross Pay (.07):
value of gross pay
c. Federal Tax paid (.18):
d. Social Security paid (.06): value of social security
e. Retirement contribution (.1): value of retirement
f. Total Deductions:
g. Take Home Pay:
value of federal tax
value of total deductions
value of take home pay
Note: Use SetPrecisions(2) to format the output (see page 98 of the text). The statements
should look something like the following:
//include the iomanip header file at the top of the file
#include
//use fixed and setprecision(2) to format the number
//use setw(8) to control the width of the field
//use \t to control the spacing between fields
cout<< fixed <