fork download
  1. //********************************************************
  2. //
  3. // Assignment 9 - Linked Lists
  4. //
  5. // Name: Baba Alhassan
  6. //
  7. // Class: C Programming, Summer 2026
  8. //
  9. // Date: July 22, 2026
  10. //
  11. // Description: Program which determines overtime and
  12. // gross pay for a set of employees with outputs sent
  13. // to standard output (the screen).
  14. //
  15. // This assignment also adds the employee name, their tax state,
  16. // and calculates the state tax, federal tax, and net pay. It
  17. // also calculates totals, averages, minimum, and maximum values.
  18. //
  19. // Array and Structure references have all been replaced with
  20. // pointer references to speed up the processing of this code.
  21. // A linked list has been created and deployed to dynamically
  22. // allocate and process employees as needed.
  23. //
  24. // Call by Reference design (using pointers)
  25. //
  26. //********************************************************
  27.  
  28. // necessary header files
  29. #include <stdio.h>
  30. #include <string.h>
  31. #include <ctype.h> // for char functions
  32. #include <stdlib.h> // for malloc
  33.  
  34. // define constants
  35. #define STD_HOURS 40.0
  36. #define OT_RATE 1.5
  37. #define MA_TAX_RATE 0.05
  38. #define NH_TAX_RATE 0.0
  39. #define VT_TAX_RATE 0.06
  40. #define CA_TAX_RATE 0.07
  41. #define DEFAULT_TAX_RATE 0.08
  42. #define NAME_SIZE 20
  43. #define TAX_STATE_SIZE 3
  44. #define FED_TAX_RATE 0.25
  45. #define FIRST_NAME_SIZE 10
  46. #define LAST_NAME_SIZE 10
  47.  
  48. // Define a global structure type to store an employee name
  49. struct name
  50. {
  51. char firstName[FIRST_NAME_SIZE];
  52. char lastName [LAST_NAME_SIZE];
  53. };
  54.  
  55. // Define a global structure type to pass employee data between functions
  56. struct employee
  57. {
  58. struct name empName;
  59. char taxState [TAX_STATE_SIZE];
  60. long int clockNumber;
  61. float wageRate;
  62. float hours;
  63. float overtimeHrs;
  64. float grossPay;
  65. float stateTax;
  66. float fedTax;
  67. float netPay;
  68. struct employee * next;
  69. };
  70.  
  71. // this structure type defines the totals of all floating point items
  72. struct totals
  73. {
  74. float total_wageRate;
  75. float total_hours;
  76. float total_overtimeHrs;
  77. float total_grossPay;
  78. float total_stateTax;
  79. float total_fedTax;
  80. float total_netPay;
  81. };
  82.  
  83. // this structure type defines the min and max values of all floating point items
  84. struct min_max
  85. {
  86. float min_wageRate;
  87. float min_hours;
  88. float min_overtimeHrs;
  89. float min_grossPay;
  90. float min_stateTax;
  91. float min_fedTax;
  92. float min_netPay;
  93. float max_wageRate;
  94. float max_hours;
  95. float max_overtimeHrs;
  96. float max_grossPay;
  97. float max_stateTax;
  98. float max_fedTax;
  99. float max_netPay;
  100. };
  101.  
  102. // define prototypes here for each function except main
  103. struct employee * getEmpData (void);
  104. int isEmployeeSize (struct employee * head_ptr);
  105. void calcOvertimeHrs (struct employee * head_ptr);
  106. void calcGrossPay (struct employee * head_ptr);
  107. void printHeader (void);
  108. void printEmp (struct employee * head_ptr);
  109. void calcStateTax (struct employee * head_ptr);
  110. void calcFedTax (struct employee * head_ptr);
  111. void calcNetPay (struct employee * head_ptr);
  112. void calcEmployeeTotals (struct employee * head_ptr,
  113. struct totals * emp_totals_ptr);
  114.  
  115. void calcEmployeeMinMax (struct employee * head_ptr,
  116. struct min_max * emp_minMax_ptr);
  117.  
  118. void printEmpStatistics (struct totals * emp_totals_ptr,
  119. struct min_max * emp_minMax_ptr,
  120. int theSize);
  121.  
  122. int main ()
  123. {
  124. struct employee * head_ptr; // always points to first linked list node
  125. int theSize; // number of employees processed
  126.  
  127. struct totals employeeTotals = {0,0,0,0,0,0,0};
  128. struct totals * emp_totals_ptr = &employeeTotals;
  129.  
  130. struct min_max employeeMinMax = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
  131. struct min_max * emp_minMax_ptr = &employeeMinMax;
  132.  
  133. head_ptr = getEmpData ();
  134.  
  135. theSize = isEmployeeSize (head_ptr);
  136.  
  137. if (theSize <= 0)
  138. {
  139. printf("\n\n**** There was no employee input to process ***\n");
  140. }
  141.  
  142. else // there are employees to be processed
  143. {
  144. calcOvertimeHrs (head_ptr);
  145. calcGrossPay (head_ptr);
  146. calcStateTax (head_ptr);
  147. calcFedTax (head_ptr);
  148. calcNetPay (head_ptr);
  149.  
  150. calcEmployeeTotals (head_ptr,
  151. &employeeTotals);
  152.  
  153. calcEmployeeMinMax (head_ptr,
  154. &employeeMinMax);
  155.  
  156. printHeader();
  157.  
  158. printEmp (head_ptr);
  159.  
  160. printEmpStatistics (&employeeTotals,
  161. &employeeMinMax,
  162. theSize);
  163. }
  164.  
  165. printf ("\n\n *** End of Program *** \n");
  166.  
  167. return (0); // success
  168.  
  169. } // main
  170.  
  171. //**************************************************************
  172. // Function: getEmpData
  173. //**************************************************************
  174.  
  175. struct employee * getEmpData (void)
  176. {
  177.  
  178. char answer[80];
  179. int more_data = 1;
  180. char value;
  181.  
  182. struct employee *current_ptr,
  183. *head_ptr;
  184.  
  185. head_ptr = (struct employee *) malloc (sizeof(struct employee));
  186. current_ptr = head_ptr;
  187.  
  188. while (more_data)
  189. {
  190. printf ("\nEnter employee first name: ");
  191. scanf ("%s", current_ptr->empName.firstName);
  192. printf ("\nEnter employee last name: ");
  193. scanf ("%s", current_ptr->empName.lastName);
  194.  
  195. printf ("\nEnter employee two character tax state: ");
  196. scanf ("%s", current_ptr->taxState);
  197.  
  198. printf("\nEnter employee clock number: ");
  199. scanf("%li", & current_ptr -> clockNumber);
  200.  
  201. printf("\nEnter employee hourly wage: ");
  202. scanf("%f", & current_ptr -> wageRate);
  203.  
  204. printf("\nEnter hours worked this week: ");
  205. scanf("%f", & current_ptr -> hours);
  206.  
  207. printf("\nWould you like to add another employee? (y/n): ");
  208. scanf("%s", answer);
  209.  
  210. if ((value = toupper(answer[0])) != 'Y')
  211. {
  212. current_ptr->next = (struct employee *) NULL;
  213. more_data = 0;
  214. }
  215. else
  216. {
  217. current_ptr->next = (struct employee *) malloc (sizeof(struct employee));
  218. current_ptr = current_ptr->next;
  219. }
  220.  
  221. } // while
  222.  
  223. return(head_ptr);
  224. }
  225.  
  226. //*************************************************************
  227. // Function: isEmployeeSize
  228. //**************************************************************
  229.  
  230. int isEmployeeSize (struct employee * head_ptr)
  231. {
  232.  
  233. struct employee * current_ptr;
  234. int theSize;
  235.  
  236. theSize = 0;
  237.  
  238. if (head_ptr->empName.firstName[0] != '\0')
  239. {
  240. for (current_ptr = head_ptr; current_ptr; current_ptr = current_ptr->next)
  241. {
  242. ++theSize;
  243. } // for
  244. }
  245.  
  246. return (theSize);
  247.  
  248. } // isEmployeeSize
  249.  
  250. //**************************************************************
  251. // Function: printHeader
  252. //**************************************************************
  253.  
  254. void printHeader (void)
  255. {
  256.  
  257. printf ("\n\n*** Pay Calculator ***\n");
  258.  
  259. printf("\n--------------------------------------------------------------");
  260. printf("-------------------");
  261. printf("\nName Tax Clock# Wage Hours OT Gross ");
  262. printf(" State Fed Net");
  263. printf("\n State Pay ");
  264. printf(" Tax Tax Pay");
  265.  
  266. printf("\n--------------------------------------------------------------");
  267. printf("-------------------");
  268.  
  269. } // printHeader
  270.  
  271. //*************************************************************
  272. // Function: printEmp
  273. //**************************************************************
  274.  
  275. void printEmp (struct employee * head_ptr)
  276. {
  277.  
  278. char name [FIRST_NAME_SIZE + LAST_NAME_SIZE + 1];
  279.  
  280. struct employee * current_ptr;
  281.  
  282. for (current_ptr = head_ptr; current_ptr; current_ptr = current_ptr->next)
  283. {
  284. strcpy (name, current_ptr->empName.firstName);
  285. strcat (name, " ");
  286. strcat (name, current_ptr->empName.lastName);
  287.  
  288. printf("\n%-20.20s %-2.2s %06li %5.2f %4.1f %4.1f %7.2f %6.2f %7.2f %8.2f",
  289. name, current_ptr->taxState, current_ptr->clockNumber,
  290. current_ptr->wageRate, current_ptr->hours,
  291. current_ptr->overtimeHrs, current_ptr->grossPay,
  292. current_ptr->stateTax, current_ptr->fedTax,
  293. current_ptr->netPay);
  294.  
  295. } // for
  296.  
  297. } // printEmp
  298.  
  299. //*************************************************************
  300. // Function: printEmpStatistics
  301. //**************************************************************
  302.  
  303. void printEmpStatistics (struct totals * emp_totals_ptr,
  304. struct min_max * emp_minMax_ptr,
  305. int theSize)
  306. {
  307.  
  308. printf("\n--------------------------------------------------------------");
  309. printf("-------------------");
  310.  
  311. printf("\nTotals: %5.2f %5.1f %5.1f %7.2f %6.2f %7.2f %8.2f",
  312. emp_totals_ptr->total_wageRate,
  313. emp_totals_ptr->total_hours,
  314. emp_totals_ptr->total_overtimeHrs,
  315. emp_totals_ptr->total_grossPay,
  316. emp_totals_ptr->total_stateTax,
  317. emp_totals_ptr->total_fedTax,
  318. emp_totals_ptr->total_netPay);
  319.  
  320. if (theSize > 0)
  321. {
  322. printf("\nAverages: %5.2f %5.1f %5.1f %7.2f %6.2f %7.2f %8.2f",
  323. emp_totals_ptr->total_wageRate/theSize,
  324. emp_totals_ptr->total_hours/theSize,
  325. emp_totals_ptr->total_overtimeHrs/theSize,
  326. emp_totals_ptr->total_grossPay/theSize,
  327. emp_totals_ptr->total_stateTax/theSize,
  328. emp_totals_ptr->total_fedTax/theSize,
  329. emp_totals_ptr->total_netPay/theSize);
  330.  
  331. } // if
  332.  
  333. printf("\nMinimum: %5.2f %5.1f %5.1f %7.2f %6.2f %7.2f %8.2f",
  334. emp_minMax_ptr->min_wageRate,
  335. emp_minMax_ptr->min_hours,
  336. emp_minMax_ptr->min_overtimeHrs,
  337. emp_minMax_ptr->min_grossPay,
  338. emp_minMax_ptr->min_stateTax,
  339. emp_minMax_ptr->min_fedTax,
  340. emp_minMax_ptr->min_netPay);
  341.  
  342. printf("\nMaximum: %5.2f %5.1f %5.1f %7.2f %6.2f %7.2f %8.2f",
  343. emp_minMax_ptr->max_wageRate,
  344. emp_minMax_ptr->max_hours,
  345. emp_minMax_ptr->max_overtimeHrs,
  346. emp_minMax_ptr->max_grossPay,
  347. emp_minMax_ptr->max_stateTax,
  348. emp_minMax_ptr->max_fedTax,
  349. emp_minMax_ptr->max_netPay);
  350.  
  351. printf ("\n\nThe total employees processed was: %i\n", theSize);
  352.  
  353. } // printEmpStatistics
  354.  
  355. //*************************************************************
  356. // Function: calcOvertimeHrs
  357. //**************************************************************
  358.  
  359. void calcOvertimeHrs (struct employee * head_ptr)
  360. {
  361.  
  362. struct employee * current_ptr;
  363.  
  364. for (current_ptr = head_ptr; current_ptr; current_ptr = current_ptr->next)
  365. {
  366. if (current_ptr->hours >= STD_HOURS)
  367. {
  368. current_ptr->overtimeHrs = current_ptr->hours - STD_HOURS;
  369. }
  370. else
  371. {
  372. current_ptr->overtimeHrs = 0;
  373. }
  374.  
  375. } // for
  376.  
  377.  
  378. } // calcOvertimeHrs
  379.  
  380. //*************************************************************
  381. // Function: calcGrossPay
  382. //**************************************************************
  383.  
  384. void calcGrossPay (struct employee * head_ptr)
  385. {
  386.  
  387. float theNormalPay;
  388. float theOvertimePay;
  389.  
  390. struct employee * current_ptr;
  391.  
  392. for (current_ptr = head_ptr; current_ptr; current_ptr = current_ptr->next)
  393. {
  394. theNormalPay = current_ptr->wageRate *
  395. (current_ptr->hours - current_ptr->overtimeHrs);
  396. theOvertimePay = current_ptr->overtimeHrs *
  397. (OT_RATE * current_ptr->wageRate);
  398.  
  399. current_ptr->grossPay = theNormalPay + theOvertimePay;
  400.  
  401. }
  402.  
  403. } // calcGrossPay
  404.  
  405. //*************************************************************
  406. // Function: calcStateTax
  407. //
  408. // Purpose: Calculates the State Tax owed based on gross pay
  409. // for each employee, using the employee's tax state
  410. // to determine the correct tax rate.
  411. //**************************************************************
  412.  
  413. void calcStateTax (struct employee * head_ptr)
  414. {
  415.  
  416. struct employee * current_ptr; // pointer to current node
  417.  
  418. // traverse through the linked list to calculate the state tax
  419. for (current_ptr = head_ptr; current_ptr; current_ptr = current_ptr->next)
  420. {
  421. // Make sure tax state is all uppercase
  422. if (islower(current_ptr->taxState[0]))
  423. current_ptr->taxState[0] = toupper(current_ptr->taxState[0]);
  424. if (islower(current_ptr->taxState[1]))
  425. current_ptr->taxState[1] = toupper(current_ptr->taxState[1]);
  426.  
  427. // calculate state tax based on where employee resides
  428. if (strcmp(current_ptr->taxState, "MA") == 0)
  429. current_ptr->stateTax = current_ptr->grossPay * MA_TAX_RATE;
  430. else if (strcmp(current_ptr->taxState, "VT") == 0)
  431. current_ptr->stateTax = current_ptr->grossPay * VT_TAX_RATE;
  432. else if (strcmp(current_ptr->taxState, "NH") == 0)
  433. current_ptr->stateTax = current_ptr->grossPay * NH_TAX_RATE;
  434. else if (strcmp(current_ptr->taxState, "CA") == 0)
  435. current_ptr->stateTax = current_ptr->grossPay * CA_TAX_RATE;
  436. else
  437. // any other state is the default rate
  438. current_ptr->stateTax = current_ptr->grossPay * DEFAULT_TAX_RATE;
  439.  
  440. } // for
  441.  
  442. } // calcStateTax
  443.  
  444. //*************************************************************
  445. // Function: calcFedTax
  446. //
  447. // Purpose: Calculates the Federal Tax owed based on the gross
  448. // pay for each employee. The rate is the same
  449. // regardless of tax state.
  450. //**************************************************************
  451.  
  452. void calcFedTax (struct employee * head_ptr)
  453. {
  454.  
  455. struct employee * current_ptr; // pointer to current node
  456.  
  457. // traverse through the linked list to calculate the federal tax
  458. for (current_ptr = head_ptr; current_ptr; current_ptr = current_ptr->next)
  459. {
  460. // Fed Tax is the same for all regardless of state
  461. current_ptr->fedTax = current_ptr->grossPay * FED_TAX_RATE;
  462.  
  463. } // for
  464.  
  465. } // calcFedTax
  466.  
  467. //*************************************************************
  468. // Function: calcNetPay
  469. //**************************************************************
  470.  
  471. void calcNetPay (struct employee * head_ptr)
  472. {
  473. float theTotalTaxes;
  474.  
  475. struct employee * current_ptr;
  476.  
  477. for (current_ptr = head_ptr; current_ptr; current_ptr = current_ptr->next)
  478. {
  479. theTotalTaxes = current_ptr->stateTax + current_ptr->fedTax;
  480.  
  481. current_ptr->netPay = current_ptr->grossPay - theTotalTaxes;
  482.  
  483. } // for
  484.  
  485. } // calcNetPay
  486.  
  487. //*************************************************************
  488. // Function: calcEmployeeTotals
  489. //
  490. // Purpose: Performs a running total (sum) of each employee
  491. // floating point member item stored in our linked list,
  492. // including state and federal tax.
  493. //**************************************************************
  494.  
  495. void calcEmployeeTotals (struct employee * head_ptr,
  496. struct totals * emp_totals_ptr)
  497. {
  498.  
  499. struct employee * current_ptr; // pointer to current node
  500.  
  501. for (current_ptr = head_ptr; current_ptr; current_ptr = current_ptr->next)
  502. {
  503. emp_totals_ptr->total_wageRate += current_ptr->wageRate;
  504. emp_totals_ptr->total_hours += current_ptr->hours;
  505. emp_totals_ptr->total_overtimeHrs += current_ptr->overtimeHrs;
  506. emp_totals_ptr->total_grossPay += current_ptr->grossPay;
  507.  
  508. // keep a running total of the state and federal taxes
  509. emp_totals_ptr->total_stateTax += current_ptr->stateTax;
  510. emp_totals_ptr->total_fedTax += current_ptr->fedTax;
  511.  
  512. emp_totals_ptr->total_netPay += current_ptr->netPay;
  513.  
  514. } // for
  515.  
  516. } // calcEmployeeTotals
  517.  
  518. //*************************************************************
  519. // Function: calcEmployeeMinMax
  520. //
  521. // Purpose: Accepts various floating point values from an
  522. // employee and adds to a running update of min
  523. // and max values, including state and federal tax.
  524. //**************************************************************
  525.  
  526. void calcEmployeeMinMax (struct employee * head_ptr,
  527. struct min_max * emp_minMax_ptr)
  528. {
  529.  
  530. struct employee * current_ptr; // pointer to current node
  531.  
  532. current_ptr = head_ptr;
  533.  
  534. // set the min to the first employee members
  535. emp_minMax_ptr->min_wageRate = current_ptr->wageRate;
  536. emp_minMax_ptr->min_hours = current_ptr->hours;
  537. emp_minMax_ptr->min_overtimeHrs = current_ptr->overtimeHrs;
  538. emp_minMax_ptr->min_grossPay = current_ptr->grossPay;
  539. emp_minMax_ptr->min_stateTax = current_ptr->stateTax;
  540. emp_minMax_ptr->min_fedTax = current_ptr->fedTax;
  541. emp_minMax_ptr->min_netPay = current_ptr->netPay;
  542.  
  543. // set the max to the first employee members
  544. emp_minMax_ptr->max_wageRate = current_ptr->wageRate;
  545. emp_minMax_ptr->max_hours = current_ptr->hours;
  546. emp_minMax_ptr->max_overtimeHrs = current_ptr->overtimeHrs;
  547. emp_minMax_ptr->max_grossPay = current_ptr->grossPay;
  548. emp_minMax_ptr->max_stateTax = current_ptr->stateTax;
  549. emp_minMax_ptr->max_fedTax = current_ptr->fedTax;
  550. emp_minMax_ptr->max_netPay = current_ptr->netPay;
  551.  
  552. current_ptr = current_ptr->next;
  553.  
  554. // traverse the linked list
  555. for (; current_ptr; current_ptr = current_ptr->next)
  556. {
  557.  
  558. if (current_ptr->wageRate < emp_minMax_ptr->min_wageRate)
  559. {
  560. emp_minMax_ptr->min_wageRate = current_ptr->wageRate;
  561. }
  562.  
  563. if (current_ptr->wageRate > emp_minMax_ptr->max_wageRate)
  564. {
  565. emp_minMax_ptr->max_wageRate = current_ptr->wageRate;
  566. }
  567.  
  568. if (current_ptr->hours < emp_minMax_ptr->min_hours)
  569. {
  570. emp_minMax_ptr->min_hours = current_ptr->hours;
  571. }
  572.  
  573. if (current_ptr->hours > emp_minMax_ptr->max_hours)
  574. {
  575. emp_minMax_ptr->max_hours = current_ptr->hours;
  576. }
  577.  
  578. if (current_ptr->overtimeHrs < emp_minMax_ptr->min_overtimeHrs)
  579. {
  580. emp_minMax_ptr->min_overtimeHrs = current_ptr->overtimeHrs;
  581. }
  582.  
  583. if (current_ptr->overtimeHrs > emp_minMax_ptr->max_overtimeHrs)
  584. {
  585. emp_minMax_ptr->max_overtimeHrs = current_ptr->overtimeHrs;
  586. }
  587.  
  588. if (current_ptr->grossPay < emp_minMax_ptr->min_grossPay)
  589. {
  590. emp_minMax_ptr->min_grossPay = current_ptr->grossPay;
  591. }
  592.  
  593. if (current_ptr->grossPay > emp_minMax_ptr->max_grossPay)
  594. {
  595. emp_minMax_ptr->max_grossPay = current_ptr->grossPay;
  596. }
  597.  
  598. // check if current State Tax is the new min and/or max
  599. if (current_ptr->stateTax < emp_minMax_ptr->min_stateTax)
  600. {
  601. emp_minMax_ptr->min_stateTax = current_ptr->stateTax;
  602. }
  603.  
  604. if (current_ptr->stateTax > emp_minMax_ptr->max_stateTax)
  605. {
  606. emp_minMax_ptr->max_stateTax = current_ptr->stateTax;
  607. }
  608.  
  609. // check if current Federal Tax is the new min and/or max
  610. if (current_ptr->fedTax < emp_minMax_ptr->min_fedTax)
  611. {
  612. emp_minMax_ptr->min_fedTax = current_ptr->fedTax;
  613. }
  614.  
  615. if (current_ptr->fedTax > emp_minMax_ptr->max_fedTax)
  616. {
  617. emp_minMax_ptr->max_fedTax = current_ptr->fedTax;
  618. }
  619.  
  620. if (current_ptr->netPay < emp_minMax_ptr->min_netPay)
  621. {
  622. emp_minMax_ptr->min_netPay = current_ptr->netPay;
  623. }
  624.  
  625. if (current_ptr->netPay > emp_minMax_ptr->max_netPay)
  626. {
  627. emp_minMax_ptr->max_netPay = current_ptr->netPay;
  628. }
  629.  
  630. } // for
  631.  
  632. } // calcEmployeeMinMax
Success #stdin #stdout 0s 5288KB
stdin
Connie
Cobol
MA
98401
10.60
51.0
Y
Mary
Apl
NH
526488
9.75
42.5
Y
Frank
Fortran
VT
765349
10.50
37.0
Y
Jeff
Ada
NY
34645
12.25
45
Y
Anton
Pascal
CA
127615
8.35
40.0
N
stdout
Enter employee first name: 
Enter employee last name: 
Enter employee two character tax state: 
Enter employee clock number: 
Enter employee hourly wage: 
Enter hours worked this week: 
Would you like to add another employee? (y/n): 
Enter employee first name: 
Enter employee last name: 
Enter employee two character tax state: 
Enter employee clock number: 
Enter employee hourly wage: 
Enter hours worked this week: 
Would you like to add another employee? (y/n): 
Enter employee first name: 
Enter employee last name: 
Enter employee two character tax state: 
Enter employee clock number: 
Enter employee hourly wage: 
Enter hours worked this week: 
Would you like to add another employee? (y/n): 
Enter employee first name: 
Enter employee last name: 
Enter employee two character tax state: 
Enter employee clock number: 
Enter employee hourly wage: 
Enter hours worked this week: 
Would you like to add another employee? (y/n): 
Enter employee first name: 
Enter employee last name: 
Enter employee two character tax state: 
Enter employee clock number: 
Enter employee hourly wage: 
Enter hours worked this week: 
Would you like to add another employee? (y/n): 

*** Pay Calculator ***

---------------------------------------------------------------------------------
Name                Tax  Clock# Wage   Hours  OT   Gross   State  Fed      Net
                   State                           Pay     Tax    Tax      Pay
---------------------------------------------------------------------------------
Connie Cobol         MA  098401 10.60  51.0  11.0  598.90  29.95  149.73   419.23
Mary Apl             NH  526488  9.75  42.5   2.5  426.56   0.00  106.64   319.92
Frank Fortran        VT  765349 10.50  37.0   0.0  388.50  23.31   97.12   268.07
Jeff Ada             NY  034645 12.25  45.0   5.0  581.88  46.55  145.47   389.86
Anton Pascal         CA  127615  8.35  40.0   0.0  334.00  23.38   83.50   227.12
---------------------------------------------------------------------------------
Totals:                         51.45 215.5  18.5 2329.84 123.18  582.46  1624.19
Averages:                       10.29  43.1   3.7  465.97  24.64  116.49   324.84
Minimum:                         8.35  37.0   0.0  334.00   0.00   83.50   227.12
Maximum:                        12.25  51.0  11.0  598.90  46.55  149.73   419.23

The total employees processed was: 5


 *** End of Program ***