1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

help writing a program

Discussion in 'C' started by ade161, Nov 2, 2010.

  1. ade161

    ade161 New Member

    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
  2. xpi0t0s

    xpi0t0s Mentor

    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().

Share This Page