/* this is a nasty long line, and goes more than 80 columns * but i have no choice but to match the output if i want * a good mark! ;) */ fprintf(payroll_f, "%-5.4d%-13s%-13s%11.2lf%11.2lf%11.2lf%11.2lf%11.2lf%11.2lf%11.2lf\n", employees[i]->id, employees[i]->l_name, employees[i]->f_name, employees[i]->gross_pay, employees[i]->ltb, employees[i]->ei, employees[i]->cpp, employees[i]->tax, employees[i]->deductions, employees[i]->net_pay); /* UGLIEST PRINTF EVER. I REGRET USING SUCH A LONG NAME FOR THE STRUCT */