CIS 71: Homework 10
Handed out: 10/31/06
Due: by 10:00pm on 11/13/06
Email program to TA
Write a program that receives as command line parameter the name of a
file, say employee.txt.
This file contains information about employees.
The information about an employee is contained in a line.
For each employee you have a lastname, a first name, a unique id, and a
salary.
You are to read this information into an array of structures.
- Write out to the file employee1.txt the same information sorted on
last name (if last names are equal, compare also first names).
- Write out to the file employee2.txt the same information sorted on
decreasing salaries.
- Write to the screen the largest salary, the lowest salary, and the
average salary.
As a comment at the beginning of your program you should do a case
analysis for this problem: problem statement, analysis, design,
implementation, and testing.