CS 115 Lab 2, Part A: Setup and Practice

[Back to lab instructions]


Setup

  1. Before you start writing code, you will set up a directory for this assignment on the cwolf server. To connect to cwolf, do one of the following:
  2. Enter your CS 115 subdirectory by typing
    cd cs115
  3. Type pwd (print working directory) and verify that the output is:
    /home/student/yourusername/cs115
  4. Create a directory for Lab 2 by typing
    mkdir lab02
  5. Enter your Lab 2 directory by typing
    cd lab02
  6. Type pwd again, and verify that the output is:
    /home/student/yourusername/cs115/lab02
  7. For the next part of this lab, you will create, edit, and test Python programs. You have two choices: This lab will give directions for both options. Directions that only apply to a particular option will be marked with [local] or [remote]. Make your choice now.

Practice

Before you proceed, answer a few questions in your writeup to get more familiar with the Moodle math operators. These questions emphasize the division and remainder operators, which are tricky for many new programmers.

Be sure to ask for help if you need it. In this class, small misunderstandings have a way of coming back to haunt you.

Once you have answered and understood these questions, continue to Part B.