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

This preview shows page 1 - 2 out of 2 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.startDeclarationsstring roomANamenum roomAValuestring roomBNamenum roomBValuestring bothFilesDone = "N"num HIGH_VALUE = 999999InputFile roomAFileInputFile roomBFileInputFile mergedFilegetReady()while bothFilesDone = "N"detailLoop()endwhileallDone()stopgetReady() open roomAFile "roomAFile.dat"

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture