When you can do nothing, what can you do? ZEN
KOAN
![]()
*This program will calculate your pay and print out a paycheck for you.
*You are an employee of MICROSOFT CORPORATION.
*When the program runs, the output screen will have displayed at the top a heading like this….
$$$$$$$$$$$$$$$$$$$$$$$MICROSOFT$$$$$$$$$$$$$$$$$$$$$$$$$
Payroll Data Entry
*First ask employee name…
PLEASE ENTER YOUR NAME
*Next…
PLEASE ENTER TOTAL HOURS WORKED:
*Then, ask the hourly rate for the employee…
WHAT IS YOUR HOURL RATE OF PAY?:
*after this question, the program will do some calculations.
*The screen will clear with the message…
PLEASE WAIT, CALCULATING PAY CHECK
Watch spacing
*Then the screen clears to print the paycheck shown below

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ MICROSOFT CORPORATION
$ check#204
$ September
26, 1996
$ Pay to the order of… Notorious Mr. Big
$
$ ***The Sum of: $ 170.06
$
$ Hrs: 30 Rate:$8.56 Taxes:$84.74 Gross:$256.80
$
$ Authorized
by Bill Gates
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
variables you will need are…. -name (char
name[80];)
-hours (int)
-payrate (float)
-tax_rate (const float tax_rate=.33;)
-taxes (float)
-gross (float)
-net_pay (float)