Aim: To write a C Program to create an employee database & to calculate net and gross salary using files.
- Enter name salary and deduction for employees in a text file.
- In a C program create a structure for employees.
- The members are name salary & deduction..
- Open the files in read mode and get the values of salary and deduction
- Calculate the net & gross salary
- Close the file.
- Open a new file in write mode and write the values of name,salary, deduction into it.
- Print the database from the file and close it.