Assignment 12, due December 5

Part of the homework for 22C:60, Fall 2005
by Douglas W. Jones
THE UNIVERSITY OF IOWA Department of Computer Science

Always, on every assignment, please write your name legibly as it appears on your University ID and on the class list! All assignments will be due at the start of class on the day indicated, and unless there is what insurance companies call "an act of God" - something outside your control; the only exceptions to this rule will be by advance arrangement.

  1. From Chapter 12 in the notes, do exercises e), o) and r). (1/2 point each)
  2. From Chapter 13 in the notes, do exeercises c), e) and k). (1/2 point each)

Machine Problem 6

Due Wednesday, December 7

(Note, this assignment was given verbally in class on November 14.)

As promised, here is the official description of Machine Problem: Modify a solution to Machine Problem 5 so that sub-objects of a box object are "windowed" by the box. Consider this display produced by a solution to MP5:

     +----------+
     |  This is a long line of text
     |          |  
     |       +----+
     |       |    |
     +-------|    |
             +----+

Here, one top-level box object contained two sub-objects, one text object and one box object. Under MP6, these should display as follows:

     +----------+
     |  This is a
     |          |  
     |       +--+
     |       |  |
     +-------+--+

Your solution will probably involve changing the specification of the render methods. To solve MP4, your render probably accepted the origin relative to which the object is rendered. For MP5, it will need this plus the upper bounds beyond which the object may not extend.