12-174

Project 1

Spring 2000

Design Due: 1 March.

Project Due: 24 March.

Administrative Information

Complete the following activities. You must work in pairs for the Project. You may not have more than 2 people on a team. If you cannot find a partner, I will appoint one.

All results must be put into the appropriate project folder on the cs174jb nova account.

All programs must have a heading identifying the people who worked on the project. Programs must also contain appropriate comments. See style sheets.

Project 1

Magic Agent

Your neighbor is an agent for a group of magicians. People call her to book magicians for holidays. She would like to use her new computer to keep track of the jobs she schedules for the magicians she manages, so she hires you to write the program.

Input

  1. The list of magician names is in text file "Magician.dat". The names are listed one per line, and have a maximum of 20 characters.

  2. The list of holidays is in text file "Holidays.dat". Again, the names are in listed one per line and have a maximum of 20 characters.

  3. The current schedule (retained data from the previous executions of the program) is in file "Schedule". You determine the format of this file as part of your assignment.

  4. The user (your neighbor the agent) inputs commands from the keyboard, in response from program prompts, as described under Command Processing below.

  5. File "Schedule" must be rewritten to contain the updated magician schedule information.

Output

  1. Prompts, menus, and responses to user commands are to be written to the screen, as described in the Processing instructions below.

  2. A summary of each command's transaction must be written to a text file called "Magic.trn". You may determine the format of the information in this file; it should be labeled and formatted clearly.

  3. File "Schedule" must be rewritten to contain the updated magician schedule information.

Command Processing

The program must process the commands described below. You may determine the details of the user interface; it must be relatively "friendly" and usable.