Instructions

Overview: you will be typing or pasting deparment and instructor data into the Input Area. After pressing the "Calculate" button, the results will appear in the Output Area. You may then copy (CTRL+A and CTRL+C for example) this information and paste it into a word processor.

Format: Each piece of data (instructor name or department name) needs to be on its own line. All department names should have a prefix of @. Example: @Math @Religious Studies There should not be any spaces between the @ symbol and the department name. Instructor names do not have a prefix. Instructors are considred to be teaching in the last department referenced. Finally, note the case is significant in comparisons: @Math and @math are different. All of this will make much more sense in a moment ...

Sample Input:

@Math
A Smith
R Waggoner
E Robertson

@English
A Smith
Z Smith
B Baker
A Smith

@Religious Studies
Z Smith
R Jones
C Davis

Sample Output:

English dup instructor: A Smith

Instructors in more than one department:

A Smith (2): English, Math
Z Smith (2): English, Religious Studies

Input Area
Enter (or Paste) the Instructor and Department information:

Output Area