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

This preview shows page 1 - 4 out of 4 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 start Declarations num masterID string masterName num masterCredits num transID num transCredits string bothDone = "N" num HIGH_VALUE = 999999 InputFile master InputFile trans OutputFile newMaster getReady() while bothDone = "N" detailLoop() endwhile allDone() stop
getReady() open master "studentFile.dat" open trans "semesterCredits.dat" open newMaster "updatedStudentFile.dat" readMaster() checkBoth() return readMaster() input masterID, masterName, masterCredits from master if not eof then masterID = HIGH_VALUE endif return readTrans() input transID, transCredits from trans

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture