Homework 3, An Array of Classes.

Short Description:

Write a program that will allow a teacher to manage their class lists.

This assignment is worth 100 points total.

Goals

When you finish this homework, you should have:

Note

Please see the individual components of this assignment before implementing anything.

Formal Description

Your friend Tom the Teacher is having trouble managing his class lists. Tom teaches up to four classes a term and manages everything through the lists of names of students in his classes, or his class lists. He has asked you to assist him by writing a program to help manage these class lists.

For this program a name is a string, which could include spaces. Natalie Portman, James T. Kirk, Her Majesty The Queen and Drake are all examples of names of students in Tom's class. (Tom has some impressive students). There are no blank or empty names, all names contain at least one character.

Tom's classes are all limited to 40 students.

Tom refers to his classes and his class lists as A,B,C, and D. Sometimes he uses an extra class list E to temporarily hold a class list while he is manipulating his lists.

Over the years Tom has developed a large number of operations that he performs on class lists. Your assignment is to create a system that allows Tom to manage his class lists. You should write a command driven software system that supports the following actions.

The program you design should read commands from the command line and perform the requested activity.

Your prompt should be "> ". After the command has finished, a new line should be printed.

[bennett@mirkwood closed]$ main
> Load A file1

> Length A
4

> Print A
Natalie Portman
James T. Kirk
Her Majesty The Queen
Drake

> Quit

[bennett@mirkwood closed]$

Further Comments