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.
- 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.
- 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.
- 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 :
- a problem statement,
- a problem description and
- a TDSR diagram.
For C++ or Java, your answers must consist of a
- a problem statement,
- a problem description,
- object analysis,
- object relationships, and
- object interaction.