Pascal Programming

Task 20 Merging Data


  1. This is a free design task.
  2. Merge two sorted files (file1.dat and file2.dat) into one single sorted file (merged.dat).
  3. Possible algorithms are as follows :
  4. The file structures of two given files are as follows :
     

    file1.dat

     

    file2.dat

     

    Description

      4215
    Chan Tai Man

    70 80 100
    4227
    Poon Bo Bo

    82 80 80

    4300
    Cheung Do Do
    50 70 90
      4100
    Hoi Sum

    60 80 68
    4230
    Ko Hing

    90 80 80



      Admission Number
    Student's Name

    3 Tests' Scores
    Admission Number
    Student's Name

    3 Tests' Scores

    Admission Number
    Student's Name

    3 Tests' Scores
     

    merged.dat

     

    Description

      4100
    Hoi Sum

    60 80 68
    4215
    Chan Tai Man

    70 80 100
    4227
    Poon Bo Bo

    82 80 80
    4230
    Ko Hing

    90 80 80
    4300
    Cheung Do Do
    50 70 90
      Admission Number
    Student's Name

    3 Tests' Scores
    Admission Number
    Student's Name

    3 Tests' Scores









  1. After coding, save your file as t20.pas at the drive S:\www\0507cit\programming\.
  2. Execute your program and fix any problem occurred.
Hosted by www.Geocities.ws

1