next up previous contents
Next: Preliminary analysis Up: CHAPTER.1: INTRODUCTION --- Previous: POP-11 facilities illustrated

The ROOMS DATABASE Example

Suppose you have the dimensions of a set of five rooms in a building whose names are "room1", "room2", ... "room5".

For each room you have measured the length, the breadth and the height.

Suppose you want to be able to answer a variety of questions, for instance

o questions about individual named rooms, e.g. questions about the perimeter, the total floor area, or total volume.

o questions about all the rooms

o questions about all the rooms that satisfy a certain condition (e.g. area greater than some given number).

Those are fairly easy problems to solve in many programming languages. We'll show how to do them simply as a way of introducing the concepts and techniques of Pop-11.



Aaron Sloman
Fri Jan 2 03:17:44 GMT 1998