ECE264 Fall 2009
Homework 4
Due Fri, November 13, 11:59pm
This homework corresponds to Outcome 1.
Write a program that reads a list of names that appears in several files
called "input_1", "input_2",
....
The number of input files is unknown when
the program is written. However, it is known that the files have consecutive
numbers.
Each line of a file "input_i" contains a last name, followed by a middle
initial if the person has one, followed by a first name, and followed by a
year of birth. The program should print all the names from the input files
into a single file according to the following specifications.
Do not store all the information from the input files in variables of the
program. Store at most one line (last name, middle initial, first name and
year of birth) at any given time. You may also store single variables such as
the lowest and highest years of birth in the input files. However, you must
not store arrays of names or arrays of years of birth. If necessary, read the
input files multiple times.
This
preview
has intentionally blurred sections.
Sign up to view the full version.

This is the end of the preview.
Sign up
to
access the rest of the document.
- Spring '08
- Donnely
- Personal name, Given name, Middle name, Arabic name, input files, middle initials
-
Click to edit the document details