UCSC Distance Learning Homework Solutions

Instructions for loading the solutions into IBM Smalltalk

Download a solution by pressing the appropriate lesson number below. If the text appears in your broswer simply save it to your IBMST directory. If your browser asks for a location to store the file, select your IBMST directory.

Execute IBM Smalltalk.

Select File/Open on the Transcript Window.

Select the file you just downloaded 'E_ANSWER.ST, e.g. E6ANSWER.ST .

This will bring up a Workspace Window containing the homework solution.

Select Edit/Select All on the Workspace Window, then select Edit/File In. This will load the lesson solution into your image.

To run the solution follow the instructions below. Ther're different for each lesson.

Click below to download a solution, class or method


Exercise 5 and 6 Solution

Exercises 5 and 6 Code

To run this solution Execute -
XxAccountView test


Exercise 7 Solution

Exercises 7 Code

To run this solution Execute -
RolodexView new openOn: Rolodex new.


Exercise 8 Solution

asFloat method

This is a method. Just load it in your image as described above. This is a prerequisite for running Exercise 8. Load this first.

Exercise 8 Code

To run this solution Execute -
TPFoodView new openOn: FoodCounter new.


Exercise 9 Solution

Small FoodList Test File

This is a text file (FoodLog) This file is required for running the Exercise 9 solution. Load this first.

Exercise 9 Code

To run this solution Execute -
TPNewFoodView new openOn: FoodCounterNew new.