The main purpose of this initial laboratory exercise is to practice working with
You will edit and run your first program within the cs101 course directory of your CS account. Today I'd like you to work through the rocket animation exercise in the Prolog. Eventually please customize your program so that something-you-choose is landing rather than the rocket. Customize the scene's background and add a terrain. The goal of this lab is to make sure you are comfortable using your Linux account to create, run, and submit your work electronically for grading. Save your file as your-name-lab1.rkt
and submit it on moodle.
At the command line:
Open in Terminal
in the pop-up menucs101
in your home directory, and set the permissions so that only you can access the contents of this directory. To do this, type the following commands, pressing return after each command, at the Linux prompt: cd
mkdir cs101
chmod 700 cs101
cd cs101
mkdir lab1
cd lab1
Choose Language…
. In the left column, make sure the arrow head to the left of How to Design Programs
is pointing downwards. If the arrow is not pointing downwards, click on it. This will cause a list of language levels to appear. Click on Beginning Student Language
. Select the OK button at the bottom right to save this selection.Now you are ready to begin programming! Note that you will need to follow steps 6-8 when setting up DrRacket on your own computer, too.
Log out
When you are done, close DrRacket by choosing Quit
from the File menu, and then locate the logout option on the menu bar (lower right corner). Choose “Logout…” and follow any remaining prompts. Always remember to log out when you are done using the system, to ensure that no one else uses your account.