DEBUG07-02.rtf - The two senior class homerooms at...

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

// The two senior class homerooms at Littleville High School // are having a fundraising drive for the prom. Each time a student // solicits a contribution, a record is created with the // student's name and the value. Two files have been created for Homeroom A and Homeroom B. // Each file is sorted in contribution value order from highest to lowest. // This program merges the two files. start // Declarations string roomAName num roomAValue string roomBName num roomBValue string bothFilesDone = "N" string HIGHVALUE = "XXXXX" InputFile roomAFile InputFile roomBFile OutputFile mergedFile getReady() while bothFilesDone = "N" detailLoop() endwhile allDone() stop
getReady() open roomAFile "roomAFile.dat"

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture