Unformatted text preview: are a clerk, then this will be followed by a positive integer that is their ID. You are guaranteed that n is less than or equal to 60, and that there will be 10 or less bosses and 50 or less clerks. Also, all first and last names will be 19 characters or less. Here is a sample file: 6 Bob Jones boss David Kern clerk 12 Carrie Wilson boss Michael Carraway clerk 7 Sarah Wilbur clerk 3 John Copley clerk 9 You must design a program to read in a file and produce an output file in the same format, but that lists the employees in the sorted order mentioned above. For the following file, the output file would be: 6 Bob Jones boss Carrie Wilson boss Sarah Wilbur clerk 3 Michael Carraway clerk 7 John Copley clerk 9 David Kern clerk 12...
View Full Document
- Spring '08
- English-language films, Natural number, John Copley, Michael Carraway