ASSIGNMENT

  • Last Date of Submission:30/07/2015

  • List out the significant differences between a file-processing system and a DBMS.

  • Explain the difference between binary file and Text file.

    • Create a menu driven program with a provision to Add, Modify, List and Delete records, the operations that are imperative in any database management. Following points will help you in understanding the program easily: − Addition of records must always take place at the end of existing records in the file, much in the same way you would add new records in a register manually.

− Listing records means displaying the existing records on the screen. Naturally, records should be listed from first record to last record.

− While modifying records, first we must ask the user which record he intends to modify. Instead of asking the record number to be modified, it would be more meaningful to ask for the name of the employee whose record is to be modified. On modifying the record, the existing record gets overwritten by the new record.

− In deleting records, except for the record to be deleted, rest of the records must first be written to a temporary file, then the original file must be deleted, and the temporary file must be renamed back to original.

− Observe carefully the way the file has been opened, first for reading & writing, and if this fails (the first time you run this program it would certainly fail, because that time the file is not existing), for writing and reading. It is imperative that the file should be opened in binary mode.