Tuesday 2/22 Week 2

Chapter 2

Student Notes

 

Objectives:

Introduction to Spider Package

Spider Programs

Assign Project 1

Discuss Academic Integrity

 

1.       Introducing the Spider Package

·         Spider will show up many times in the course

·         Used to introduce some basic concepts and get students started programming

·         Spider is a

·          

·          

 

2.       Looking at the Spider package

·         Spec file: tells the user of the package how to use the functions in the package

·          

·         Pre conditions

·         Post conditions:

·         Types:

·          

·         Enumeration types:

·          

·         Subtypes: a smaller range of a given data type

·         Procedures with parameters

·          

·          

·          

·         Functions: what’s the difference from a procedure? –

·          

·          

·         Return values:

·         Exceptions:

 

 

 

3.       Spider in action

 

4.       Using parameters

·         Face: use this by writing Spider.Face(WhichWay => Spider.West);

·          

·         Notice that we say Spider.West

·          

·          

·          

·         Same thing with ChangeColor

·          

5.       Handout Assignment 1

 

 

6.  Discuss Academic integrity

·         Designing an initial algorithm with one or more people – OK

·         Doing the required paperwork with/for other people – NOT OK

·         Helping someone debug their code – OK, as long as you don’t touch their keyboard

·         Letting someone see your code, either on paper or electronically – NOT OK

·         Getting help from a TA or instructor --  always OK

·         In general, do your own work for you and you alone, learning can happen through teaching and helping, but in the end everyone does their own assignment

·         ANY QUESTION SHOULD BE BROUGHT TO A TA OR ME. You will not be prosecuted for asking a question.

·         The CS department takes this very seriously. Any violation that I find *will* be reported to the Office of Academic Integrity.

·         First violation goes into a file, if there is not other offense, record is destroyed at graduation

·         After a first violation, every violation thereafter must go to a hearing