University of Toronto - Fall 1996
Department of Computer Science
CSC 148H: INTRODUCTION TO
COMPUTER SCIENCE
Assignments and Tests
Midterm 2
- Solutions:
- for the 10:00 (Borodin/Cook) test
- for the 1:00 (Horton) test
- for the 6:00 (Horton) test
You need a postscript viewer to see the Horton solutions.
They are also available on paper, in the Engineering
library, Sandford Fleming Building room 2402.
Assignment 3: Object-Oriented Simulation
- Assignment handout.
Paper copies will be distributed in lectures on Wednesday/Friday.
- The starter code, in 18 files:
- starter code for the
new version of set.tu,
needed for Part 1 of the assignment.
Note that I have indicated the subprograms for which we'll provide bodies, but haven't
provided the bodies yet. You can proceed with the assignment and then paste those bodies in
when they're available.
-
A better version of set.tu,
including all the promised code, and some better suggestions
regarding testing.
-
simple.tu -- defines
a SimpleObject class, used for testing purposes in the newest
set.tu
-
A sample driver program.
Assignment 3a: Recursion Warm-up
Assignment 2: Labyrinth Game
Midterm 1
- Solutions:
- for the 10:00 (Borodin/Cook) test
- for the 1:00 (Horton) test
- for the 6:00 (Horton) test
You need a postscript viewer to see these.
They are also available on paper, in the Engineering
library, Sandford Fleming Building room 2402.
- Comments from the marker:
- of the 10:00 (Borodin/Cook) test,
including the bare answers
- of the 1:00 (Horton) test
Assignment 1: Crosswalk Simulation
- assignment handout
- Example of output from a single run,
with a state summary at every step.
- remarks about the sample run
- Example of output from a shorter run,
with a state summary only every 5 steps.
- The starter code:
- File simulate.tu
-- containing the Simulate module
- File stud.tu
-- containing the Stud module
- File car.tu
-- containing the Car module
- File studgen.tu
-- containing the StudentGen module
- File cargen.tu
-- containing the CarGen module
- File set.tu
-- containing the StudentSet module
- File queue.tu
-- containing the CarQueue module
- File perform.tu
-- containing the Performance module
- File main.t
-- containing the main program
When you make your own copies of these files, be sure to
use the file names listed above.
- Information about the grades on this assignment,
and everything that was marked before it.
- What to do if you think there is a problem with your mark.
(You must take care of this by Friday 01 November.)
Assignment 0: Divisibility by 11
Back to the
csc148 home page