CS 115 Lab 2, Spring 2015
Deadlines
- Pre-lab: Tu 1/27/2015 at 7 AM
- Writeup and code (lab02bcd.py): Tu 2/3/2015 at 4 PM
- Demo (parts B/C/D and E): Any lab section, workshop, or open tutoring session before Tu 2/3/15 at 4 PM. Your last chance is the 3-4 PM tutoring session on Tuesday.
Goals
Upon successful completion of this lab, you should be able to write and edit Python programs
that use:
- numeric data types
- arithmetic operations
- rectangles and circles in graphical windows
- order of operations
- the math library
Pre-Lab Assignment
Click here for the pre-lab instructions.
Even if you didn't get to the pre-lab by the deadline, you should work through it before proceeding with the rest of the lab.
Instructions
Follow the links below to complete each part of this lab.
- Setup and practice
- Compute the area of a square
- Compute the area of a circle
- Compute the volume of a cube, the volume of a sphere, and the area of an equilateral triangle
- Draw squares and circles in the graphics window
- Submit the assignment