CS 115 Lab 1

70 Points

This lab should be done by every student. You can ask questions of the instructor or your TA. Do not ask other students.

Due date:

Educational goals of this lab - verify that every student can

If the file is not timestamped by the end of lab session, you get NO points!

Submit your file with the Canvas submit link.

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 a 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.

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 (Wing). (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 any 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!