I need a help in solving c programs

mersal

Honorable
Dec 6, 2013
2
0
10,510
Hi ..
I need someone to solve this question please ..

Write a c program that promote user to enter employee Number and then read the employee information from a file "input.txt" (salary, overtime, tax). The program should calculate the Employee final salary and then write employee Number and final salary into another file “output.txt”. The program should handle the case where the employee Number is not available in the input.txt file. In this case just print to the screen “Employee Not found”.
Hint: check if the file is open or not. Final salary (salary+overtime-tax).
 
Solution
"Write a xxx program..." always indicates homework.

I'm sure that people here would be glad to give you hints and help about any problems that you are having, but it is incumbent upon you to at least make the effort of trying to solve the problem. As it is, you have just asked us to do that for you; that's just not going to happen. If you rely on other people to do the work for you do you think that you deserve to pass the course that you are on?

Ijack

Distinguished
"Write a xxx program..." always indicates homework.

I'm sure that people here would be glad to give you hints and help about any problems that you are having, but it is incumbent upon you to at least make the effort of trying to solve the problem. As it is, you have just asked us to do that for you; that's just not going to happen. If you rely on other people to do the work for you do you think that you deserve to pass the course that you are on?
 
Solution

mersal

Honorable
Dec 6, 2013
2
0
10,510


who said to u that .. "I didn't do any efforts to solve the problem" .I do not know why you speak sharply. If you have certain rules to help people. Others may not have same your rules and therefore they will assist me in solving the question but actually I have finished it so I do not need a help from you.
Thank u:kaola:
 

Ijack

Distinguished
Yes, I do have rules when helping with homework questions.

Rule 1. When a poster demands an answer without giving any code or other indication that they have attempted the question then they do not deserve an answer.

That's it.

I'm glad that you've managed to solve the problem; it seems you were a little premature in asking for help.