FILE MANIPULATION :write a C Program to create an employee database & to calculate net and gross salary using files - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Sunday, June 5, 2011

FILE MANIPULATION :write a C Program to create an employee database & to calculate net and gross salary using files


FILE MANIPULATION

Aim:  To write a C Program to create an employee database   & to calculate net and gross salary using files.

Algorithm:

  1. Enter name salary and deduction for employees in a text file.
  2. In a C program create a structure for employees.
  3. The members are name salary  & deduction..
  4. Open the files in read mode and get the values of salary and deduction
  5. Calculate the net & gross salary
  6. Close the file.
  7. Open a new file in write mode  and write the values of name,salary, deduction into it.
  8. Print the database from the file and close it.

No comments:

Post a Comment