CS117 Programming Methodology
Spring 1999

Program design

If you are taking Fortran, C, or Pascal, do problems 1 , 2 and 3. If you are taking C++ or Java, do problems 1 and 3 only.

  1. Design a simple full-screen editor for a display terminal. The editor should allow text to be inserted, deleted and modified. Sections of text can be "cut" from one part of the file, and "pasted" to another. The user can specify a text string, and the editor can find the next occurrence of the string. The user can specify margin-settings, page-length and tab settings.
  2. A program is required to analyze the data from a traffic-flow box. The box records the time that a vehicle passes over the sensor. The program should display a histogram of the number of vehicles per hour in one hour increments over a period of one day, averaged over all the days that data was recorded. It should also display the number of vehicles for each week that data was recorded.
  3. Computronics conducts customer satisfaction surveys every six months. Currently, telephone customer service representatives must write the responses to each survey question on paper. Design a program to automate this system, so that the customer service representatives can enter the information directly into the computer as they ask each question.

Deliverables

For Fortran, C or Pascal your answers must consist of :

  1. a problem statement,
  2. a problem description and
  3. a TDSR diagram.

For C++ or Java, your answers must consist of a

  1. a problem statement,
  2. a problem description,
  3. object analysis,
  4. object relationships, and
  5. object interaction.