programming

posted by .

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

  • programming -

    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.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Terry High School

    5,3x-7=2x+1 Please never put personal identifying data in your post, like the address, or full name, or the name of your high school. The world is a dangerous place. Please discuss this with your mom. I can tell what you mean by 5,3x …
  2. Algebra

    A high school has 900 students, 40% of whom are drama majors. A second high school has a 75% drama majors population. The school board plans to merge the two schools into a Performing Arts magnet school that will then have a 52.5% …
  3. 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 this …
  4. 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?
  5. 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 …
  6. programming

    using pseudocode debug the following 3 programs // A high school is holding a recycling competition // This program allows a user to enter a student's // year in school (1 through 4) // and number of cans collected // Data is entered …
  7. programming

    create a c++ code that will set first the number of the student to be entered then get the name and their grades, After that display the name, grades & remarks of the student using arrays
  8. Programming C++ using Data Structure.

    In an academic institution, Student has its records. Each student has his/her profile such as id number, student name. The institution also keeps records of student grades in each subject. Student grades contains information subject …
  9. help algebra??

    stillwater junior high divides students into teams taught by a group of teachers the table shows the number of students in each team. imgur . com/x7kghII (picture of student numbers) The principle uses a computer to randomly select …
  10. 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 standard …

More Similar Questions