Answer flowchart pseudocode start declarations

This preview shows page 4 - 8 out of 360 pages.

2. Boardman College maintains two files—one for Sociology majors and another for Anthropo
open mergedFile “BoardmanCollege.txt” readAnthro() readSocio() checkEnd() return readAnthro() input anthroId, anthroLastName, anthroFirstName, anthroGPA from anthroFile if eof then anthroId = END_ID endif return readSocio() input socioId, socioLastName, socioFirstName, socioGPA from socioFile if eof then socioId = END_ID endif return checkEnd() if anthroId = END_ID then if socioId = END_ID then areBothAtEnd= “Y” endif endif return mergeRecords() if anthroId < socioId then output anthroId, anthroLastName, anthroFirstName, anthroGPA to mergedFile readAnthro() else output socioI socioGPA to mergedFile readSocio() endif checkEnd() return finishUp() close anthroFile close socioFile close mergedFile return
a. Design the logic for a program that merges the files for summer and winter programs to create 3. Laramie Park District has files of participants in its summer and winter programs this year. E
return readWinter() input winterId, winterFirst, winterLast, winterAge, winterClass from winterFile if eof then winterId = END_ID endif return checkEnd() if summerId = END_ID AND winterId = END_ID then areBothAtEnd= “Y” endif return mergeRecords() if summerId < winterId then output summerFirst, summerLast to mergedFile readSummer() else output winterFirst, winterLast to mergedFile readWinter() endif checkEnd() return finishUp() close summerFile close winterFile close mergedFile return

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture