CS 10, Fall 1997

Lab 9: Translation with Binary Encoding


Outline


Assignment for the Next Lab

  1. Reread pp. 183-187. Read pp. 187-202

  2. Do questions 1-5 on page 192 and question 4 on page 211. Be prepared to hand them in at the beginning of next class.

Lab 9 Instructions

  1. Copy the "module5" folder from the Classes file server. Do lab exercises 1.1 through 1.6 on pages 178-181. Take your time and read through the material carefully. If you do not complete this part of the lab during class, you should complete it on your own before the next lab.

  2. Do exercise 1.7 and 1.8 (pp. 181-182) using the "Howard Stone" stack. The binary-decimal conversion algorithms are described on pp. 176-177 of the text. makeDecimal encodes in Hypertalk the algorithm described in Example 1 (p. 176). If you can describe the procedure in English, you should be able to script it in HyperTalk.

    When you have finished, call one of use over and demonstrate your function.