Programming logic and design eigth edicion chapter 7Q1. - Find The B.docx

This preview shows page 2 - 4 out of 5 pages.

programming logic and design eigth edicion chapter 7Q1. - Find The Bugs (5 bugs)// Grossmont College maintains a master file of students and credits earned.// Each semester the master is updated with a transaction file// that contains Student ID and credits earned during the semester.// Each file is sorted in Student ID number order. Student name only exists in the master file.startDeclarations��num masterID������string masterName�����num masterCredits������num transID�����������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 transaction "semesterCredits.dat"��open newMaster "updatedStudentFile.dat"��readMaster()���

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture