i need help with creating a program that allows the user to enter a payroll code. The program should research for the payroll code in the file and then display the appropriate salary. If the payroll code is not in the file, the program should display an appropriate message. Use a sentinel value to end the program. Test the program using the following payroll codes: 10, 24, 55, 32, and 6. Stop the program by entering your sentinel value.
Firstly learn to make up algorithms, then show your ideas.
This code is totally illiterate.
This was uncalled for.
@ade161: if a number is less than 0 it's guaranteed to be less than 11, 26, and 33 (and any number greater than or equal to 0). Also, as Igor1024 pointed rather unkindly, a number can't be greater than itself. You probably meant something else, but since you seem to have removed the original code, I can't tell what was going on.