Lab 2: Moving ahead
In this lab, you’re going to be writing a whole bunch of simple code. One note: don’t delete earlier code when you go on to later parts; just leave the code there in the definitions window, so that I can see it all when it’s time to check it off.
1 Beginning of Prologue
Complete the first part of the HtDP 2e Prologue, up through part 1.1. Try all of the examples; correcting the errors you encounter while typing them in will probably be very helpful in later work.
2 Tiny Exercises
These exercises should make sure that what you’re reading is making sense. Show me the results when you’re done. Leave all of them in the definitions window, so that I can see them all.
Write the expression that adds three to the difference between 147 and 13.
Write the expression that computes the cosine of 3π/2. Does it produce what you expect?
Write the expression that computes the length of your name.
Write the expression that computes whether your middle name is longer than the middle name of the person nearest to you.
Write the expression that draws your face. Here’s what mine looks like:
3 Make a Google Sites Account
Create a google account (if you don’t already have one) Use sites.google.com to create a new site for your CS portfolio. You may wish to use this portfolio for projects that you tackle in later classes, so I would advise you not to make it CSC123-specific.