DEBUG07-03 - Cooper College maintains a master file of...

This preview shows page 1 - 2 out of 2 pages.

// Cooper College maintains a master file of students and credits// earned. Each semester the master is updated with a transaction// file that contains credits earned during the semester.// Each file is sorted in Student ID number order.startDeclarationsnum masterIDstring masterNamenum masterCreditsnum transIDnum transCreditsstring bothDone = "N" num HIGH_VALUE = 999999InputFile masterInputFile transOutputFile newMastergetReady()while bothDone = "N"detailLoop()endwhileallDone()stopgetReady() open master "studentFile.dat"open trans "semesterCredits.dat"open newMaster "updatedStudentFile.dat"readMaster()readTrans()checkBoth()returnreadMaster()input masterID, masterName, masterCredits from masterif eof thenmasterID = HIGH_VALUEendifreturn

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture