May 11, 2005

Test Cases:

Here are a couple of test cases for you. Make up some of your own to try too. This is supposed to be fun.

binkley:python> python -i kevinbacon.py 
What Actor would you like to trace? (exit to quit) Richard Arlen
The Kevin Bacon Number for  Richard Arlen  is  8
Richard Arlen
   Wings (1927)
Charles Buddy Rogers
   My Best Girl (1927)
Mary Pickford
   Sparrows (1926)
Gustav von Seyffertitz
   Bells, The (1926)
Lionel Barrymore
   Key Largo (1948)
Lauren Bacall
   Appointment with Death (1988)
Carrie Fisher
   'burbs, The (1989)
Tom Hanks
   Apollo 13 (1995)
Kevin Bacon
What Actor would you like to trace? (exit to quit) Julie Andrews
The Kevin Bacon Number for  Julie Andrews  is  3
Julie Andrews
   Princess Diaries, The (2001)
Hector Elizondo
   Nothing in Common (1986)
Tom Hanks
   Apollo 13 (1995)
Kevin Bacon

permalink | | 2005.05.11-15:26.00

May 04, 2005

Data files for Kevin Bacon Game

There are three data files you will need for the Kevin Bacon game programming assignment.

In addition you will want to download the adjGraph.py file that contains the Graph and Vertex class.

permalink | | 2005.05.04-21:35.00

Apr 25, 2005

Data Files for Morse Code Assignment

There are two files for you to use in developing the Morse code project.

permalink | | 2005.04.25-09:22.00

Apr 04, 2005

Fox Code

Here is my implementation of Fox

permalink | | 2005.04.04-11:01.00

Apr 01, 2005

Tower of Hanoi

Here's a site that lets you try the Tower of Hanoi game: TowerOfHanoi

permalink | | 2005.04.01-09:12.00

Mar 18, 2005

BunnyHunt

In case you had to take off early for spring break, here is a copy of the bunny hunt assignment: Bunny Hunt.

permalink | | 2005.03.18-11:17.00

Mar 04, 2005

Calculator Project

The skeleton code for the calculator project is in calc.py.
Remember you are not allowed to modify the processEvents method.

If this program is not enough of a challenge for you as is, here are some ideas for extensions:

  • Allow the user to enter multi-digit numbers. (this one's pretty easy)
  • Allow the user to enter floating point numbers.
  • Add some additional functions that only work on a single operand, like sin, cos
  • Make it a graphing calculator.

This project is due Friday March 11th.

permalink | | 2005.03.04-11:22.00

Feb 22, 2005

HW 1:

Exercises 1--5 on page 86.

Due Monday Febrary 28th

Problem 5 clarification, the code for the non-fully parenthesized version of problem 5 is in the chapter. What this problem is asking you to do is modify the code so it works correctly or prints an error message if I give you any kind of bad input. For example, but not limited to:

  • unbalanced parenthesis
  • characters that are not parens, operands (letters or numbers), or operators.
  • missing spaces between operators and operands

See you monday.

permalink | | 2005.02.22-14:57.00

Feb 15, 2005

Card Game Assignment

Here is an electronic copy of the card game assignment: [http://knuth.luther.edu/~bmiller/CS151/Spring05/CardGame.pdf CardGame.pdf]

Please: Get the game working in text mode first, then add the graphics. The graphical component is only a small part of the grade on this assignment (2 points out of 20). The Final project is Due Monday Febrary 21 by class time. You can save all our classes and code in a single file.

permalink | | 2005.02.15-08:16.00

Feb 13, 2005

Welcome to CS240

Check here often for class announcments, and postings of class notes.

permalink | | 2005.02.13-06:54.00

Feb 08, 2005

Python Language Reference Manual

You can download this pdf copy of the python reference manual here. In particular chapter 3 has a lot of information on the functions that you can write to implement various operators.

permalink | | 2005.02.08-09:14.00

Feb 05, 2005

How to Submit Labs

You should submit your python programs on-line by using the Submit HW link. The Submit HW link is also found in the menu on the left side of all class webpages.

If you have problems with submitting your homeowork this way, please send me an email.

permalink | | 2005.02.05-11:08.00

Source Code is Available

The source code in the textbook is available on-line. You can individual files Here.

permalink | | 2005.02.05-11:05.00

Aug 25, 2004

User-agent: * Disallow: /

permalink | | 2004.08.25-09:00.00

This is a Subversion working copy administrative directory.

Visit http://subversion.tigris.org/ for more information.

permalink | | 2004.08.25-09:00.00

This is a Subversion working copy administrative directory.

Visit http://subversion.tigris.org/ for more information.

permalink | | 2004.08.25-09:00.00

User-agent: * Disallow: /

permalink | | 2004.08.25-09:00.00

This is a Subversion working copy administrative directory.

Visit http://subversion.tigris.org/ for more information.

permalink | | 2004.08.25-09:00.00

This is a Subversion working copy administrative directory.

Visit http://subversion.tigris.org/ for more information.

permalink | | 2004.08.25-09:00.00

This is a Subversion working copy administrative directory.

Visit http://subversion.tigris.org/ for more information.

permalink | | 2004.08.25-09:00.00

NetNewsWire: More news, less junk. Faster