CS 115 Lab 1

80 Points

This lab should be done by every student. You can ask the TA, Dr. Keen, or other students in the class for help. If you get help from a student please cite that in your header comment.

Due dates:

If the files are not timestamped by the end of lab session, they get NO points!

Attendance at the lab is worth 20 points. It is recorded separately from the lab grade.

Educational goals of this lab - verify that every student can

Submit your files with this link. Use the Lab 1 menu choice.

The cone.py file is submitted as Code; the text file is submitted as Other.

Preparations: Please do these BEFORE Lab session starts.

  1. View these videos
  2. Make sure you have read up to section 1.7 of the Zybook.

IF YOU NEED HELP see tutorials on Python using IDLE or using Wing IDE 101 here (IDLE) or here (WingIDE). (Also available as video Entering and running a Python program)

Saving Files: On your computer you can save a file where you wish, but it is a good idea to make at least one folder for your CS 115 work, to make it easy to find. Or you can save a file on a memory stick or a Cloud storage account (like Dropbox) or email it to yourself.

INSTRUCTIONS:

Why do we ask you to do this? A good part of this class involves writing Python programs, running them, testing them, fixing them. You need to start learning how you use the tools of the trade to do this. You will definitely run into many different errors when you are writing programs; every programmer does. You need to start gaining experience in what the error messages mean and how you can fix them.

IF YOU NEED HELP see tutorials on Python using IDLE or using Wing IDE 101 here (IDLE) or here (WingIDE). (Also available as video Entering and running a Python program)
HINT: a very common mistake people make with IDLE is to skip the step where you tell the IDE that you want a NEW WINDOW. Go to the File menu, click on New Window, then you can paste the program code into that window.
HINT: In an IDE, do NOT paste your code into the window that says "Shell" at the top. That is NOT right! Your file should NOT have ">>>"'s all over it.

If you use a lab machine, log off properly - you don't want your account misused by someone else!

Remember NOT to leave files on the local hard drives on University machines! Make sure you save your projects onto a portable storage device you take with you or mail it to yourself or use a Cloud drive like Dropbox!