programming

trying to debug pseudocode


2. Th e Springwater Township School District has two high
schools—Jeff erson and Audubon. Each school maintains a
student fi le with fi elds containing student ID, last name, fi rst
name, and address. Each fi le is in student ID number order.
Design the logic for a program that merges the two fi les
into one fi le containing a list of all students in the district,
maintaining student ID number order.





start

Declarations
InputFile customerData
OutputFile mailingLabels
string studentid
string firstName
string LastName
string streetAddress


housekeeping( )
while bothDone = "N"
mainLoop( )
endwhile
finishUp( )
stop






housekeeping( )
open customerData "VernonHillsMailOrderBoxes.txt"
open mailingLabels "CutomerMailingLabels.txt"
Jefferson( )
Audubon( )
if jeffId = 9999 then
if audId = 9999 then
bothDone = "Y"
endif
endif
return






Jefferson( )
if eof then
jeffId = 9999
endif
return





Audubon( )
if eof then
audId = 9999
endif
return






mainLoop( )
if jeffId > audId then
Audubon( )
else
Jefferson( )
endif
if jeffId = 9999 then
if audId = 9999 then
bothDone = "Y"
endif
endif
return





finishUp( )
close files
return

  1. 👍 0
  2. 👎 0
  3. 👁 64
asked by Andre
  1. Well, beside the fact that the there's no indication of reading or writing anywhere...

    The program's goal is to sort-merge two files into one, yet the program opens only one input file (and one output file). The program cannot accomplish the goal; it will not do what it's supposed to do.

    1. 👍 0
    2. 👎 0
    posted by Graham

Respond to this Question

First Name

Your Response

Similar Questions

  1. math

    during one year the Wagners real estate bill included $600 for local schools. Of this amount, $150 went to the high school district. what percent did the Wagner family pay to the high school district?

    asked by shantrese on February 14, 2011
  2. History

    1. Why did Henry Briggs and other parents sue the Summerton School District? a. They believed Black schools weren't equal to white schools, so the schools should be integrated.

    asked by Loser on May 1, 2018
  3. social studies please check!

    1. Why did Harry Briggs and other parents sue the Summerton School District? A. They believed black schools weren't equal to white schools, so the schools should be integrated*** B. The state did not want to equalize the school

    asked by what on May 13, 2014
  4. American History

    I am trying to locate either the name of the school or school district (i.e. City or County) that first required public schools to teach both male and female students. I know that in 1789 Massachusetts was the first state to make

    asked by AshleyC on September 10, 2010
  5. MATH

    A school district receives a grant to purchase 64 new computers to be apportioned among the 6 schools in the district based on the student population of each school. School A B C D E F Population 314 211 197 243 279 325 Find the

    asked by Anonymous on April 22, 2017
  6. statistics

    You think that the best sampling strategy is stratified sampling. Youd like to list the characteristics of schools in this district, then randomly select 80 schools who roughly match the demographic characteristics of the entire

    asked by charles on April 12, 2012
  7. 1 Credit for HS

    How to earn one credit for high school? Last year when the whole 6th grade visit our middle school (we have 2 middle schools in our district, my friends and other people are going to that middle school but since I'm not going to

    asked by Laruen on December 9, 2011
  8. Debug=true

    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL: 1. Add a "Debug=true" directive at the top of the

    asked by Amy~ on January 13, 2011
  9. AED 200

    Identify the roles district, state, and federal government agencies have in your local schools. Which agency do you feel has the most significant influence in making policy and curriculum decisions at the local level? Why? This is

    asked by Ashley on April 14, 2009
  10. English

    Can somebody please help me write a summary news lead using the story below. The lead may be no longer than 20 words and must be written in the active voice. Gary hubard, superintendent of schools, announced a new program for your

    asked by Afranko on May 19, 2013

More Similar Questions