Lab 2

Purpose

Introduce pair programming, start programming with Beginning Student Language & DrRacket

Video Introducing Ethics

Watch this together, at beginning of lab:

After addressing any questions, watch this video, which frames the main exercise for the lab, designing a face:

TA Pair Demo

A pair of TAs will demonstrate pair programming, solving the following problem:

Define a function `long-string?` that, given a string, returns #true if the string 
has more than 10 characters, and #false otherwise. Be sure to write some examples 
using check-expect. 

Find a partner

Find someone in the class (likely, whoever you are sitting next to!) Each lab, and sometimes during lab, you will find new partners, so do not worry if this is someone you know already – working effectively with people you don’t already know (and perhaps would not be friends with!) is an important skill to develop.

Starter File

Download lab2.rkt. Start working through this, carrying out pair programming like the TAs demonstrated.

Finished?

When you have completed all the exercises, both you & your partner should submit the completed file to the Lab 2 assignment on Gradescope. If you have trouble submitting it, ask a TA. Ensure that the autograder, which runs immediately, correctly validated your work, and if there are problems, correct them and re-submit.

Once you are done, make sure one of your TAs has marked you present, and you are welcome to leave!