Docsity

Lego Structure Lab in CPS 196 - Fall 2007, Lab Reports of Computer Science

Toggle sidebar
bg1
CPS 196
Introduction to Computer Programming: C
Fall 2007
Lab Session 1, August 27, 2007
1. Login to lab computers
Check the directory structure – is there an I:\ drive?
(Tentative: make a folder there for yourself.)
2. Blackboard
Open a browser – let’s all try Firefox – and go to blackboard.syr.edu.
Login with your SU NetID and password. Do you have CPS 196 there as a class?
Click on the link to see the announcements (only current content).
Check where the gradebook will be.
3. Lab exercise
This lab exercise is based somewhat on the Write It - Do It exercises from the National
Science Olympiad. Goals:
- practice writing clear instructions in a step-by-step fashion
- learn some basic problem solving and programming process terminology
Each group of students will receive a small Lego structure and a bag with the Lego
blocks that went into building the structure.
Step 1: Write It: You may not draw any diagrams. At the top of the paper, put the letter
of your structure and your name. In the section marked Input Data, describe each of the
pieces that goes into the structure. In the section marked Construction Steps, give
directions for building the final structure. The directions should clearly describe not only
which pieces are connected, but also on where a piece is attached and what its orientation
is to the other pieces. Color counts (unless you are color blind). The output of the
process is the structure itself.
(The analogy to programming is that you are writing a program of instructions.)
Step 2: Do It: After collecting all the structures and the directions, you will receive a set
of instructions and the input pieces for another structure.
Check the input: Are the input pieces correctly described?
Follow the instructions: Use the input pieces to build the structure.
Check the output: Ask to see the final structure and judge whether yours is correct.
(Analogy (loosely) is that you are compiling and running the program, and then testing
the results.)
Step 3: Hand in your lab papers to me.
pf2

Partial preview of the text

Download Lego Structure Lab in CPS 196 - Fall 2007 and more Lab Reports Computer Science in PDF only on Docsity!

CPS 196

Introduction to Computer Programming: C

Fall 2007

Lab Session 1, August 27, 2007

1. Login to lab computers Check the directory structure – is there an I:\ drive? (Tentative: make a folder there for yourself.) 2. Blackboard Open a browser – let’s all try Firefox – and go to blackboard.syr.edu. Login with your SU NetID and password. Do you have CPS 196 there as a class? Click on the link to see the announcements (only current content). Check where the gradebook will be. 3. Lab exercise This lab exercise is based somewhat on the Write It - Do It exercises from the National Science Olympiad. Goals: - practice writing clear instructions in a step-by-step fashion - learn some basic problem solving and programming process terminology Each group of students will receive a small Lego structure and a bag with the Lego blocks that went into building the structure.

Step 1: Write It: You may not draw any diagrams. At the top of the paper, put the letter of your structure and your name. In the section marked Input Data, describe each of the pieces that goes into the structure. In the section marked Construction Steps, give directions for building the final structure. The directions should clearly describe not only which pieces are connected, but also on where a piece is attached and what its orientation is to the other pieces. Color counts (unless you are color blind). The output of the process is the structure itself. (The analogy to programming is that you are writing a program of instructions.)

Step 2: Do It: After collecting all the structures and the directions, you will receive a set of instructions and the input pieces for another structure. Check the input: Are the input pieces correctly described? Follow the instructions: Use the input pieces to build the structure. Check the output: Ask to see the final structure and judge whether yours is correct. (Analogy (loosely) is that you are compiling and running the program, and then testing the results.)

Step 3: Hand in your lab papers to me.

Lego Structure Lab

Names:

Structure Identifying Letter:

Input Data Description:

Construction Steps: