-1

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 the rest i would be greatly appreciated

here is what i have so far:

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

Edited by Nick Evan: Added CODE_tags

Votes + Comments
no one here does work completion or finishes homework per the DW policies. Please ask an actual question next time
3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by daviddoria
0

>>if you can write the rest i would be greatly appreciated

Please deposit $1,000,000.00 USD in my PayPal account and I'll be glad to write it for you :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.