Laramie Park District has files of participants in its summer and winter program
ID: 640303 • Letter: L
Question
Laramie Park District has files of participants in its summer and winter programs this year. Each file is in participant ID number order and contains additional fields for first name, last name, age, and class taken (for example beginning swimming)
A. design a logic program that merges the files for summer and winter programs to create a llist of the first and last names of all participants for the year in ID number order.
B. modified a program so that if participant has more than one record, the paricipant's ID number and name are output only once.
C. modify the program so that if participant has more than one record, the ID number and name are output only once along with a count of the total number of the classes the participant has taken.
Explanation / Answer
Question A
Pseudocode:
start
Declarations
InputFile summerFile
InputFile winterFile
OutputFile mergedFile
num summerId
num summerAge
string summerFirst
string summerLast
string summerClass
num winterId
num winterAge
string winterFirst
string winterLast
string winterClass
string areBothAtEnd=
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.