Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   help writing a program (http://www.go4expert.com/forums/help-writing-program-t23743/)

ade161 3Nov2010 01:31

help writing a program
i need your help in creating a program that allows the user to enter a payroll code. The Program should search for the payroll code in the code in the file and then display the appropriate salary. If the code is not in the file, the program should display an appropriate message. Use a sentinel value to end the program.

if you can write it would be greatly appreciated

xpi0t0s 3Nov2010 14:34

Re: help writing a program
Here's a start:

int main()
  int payroll, salary, cont=1;
  while (cont)
    getSalary(payroll, &salary);
    if (getUserReq())
  return 0;

now you need to write functions getPayrollCode(), getSalary() and getUserReq().

All times are GMT +5.5. The time now is 00:05.