You might want to use these files in any of several ways: You can look at the

Question:

You might want to use these files in any of several ways: 

  • You can look at the file contents to better understand the types of data each program uses.
  • You can use the file contents as sample data when you desk-check the logic of your flowcharts or pseudocode.
  • You can use the files as input files if you implement the solutions in a programming language and write programs that accept file input.
  • You can use the data as guides for entering appropriate values if you implement the solutions in a programming language and write interactive programs.

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 the logic for a program that merges the files for summer and winter programs to create a list of the first and last names of all participants for the year in ID number order.
b. Modify the program so that if a participant has more than one record, the participant's ID number and name are output only once.
c. Modify the program so that if a participant has more than one record, the ID number and name are output only once along with a count of the total number of classes the participant has taken.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: