Saturday, May 26, 2007

Final Grading

I've finished grading your programs. I posted comments on each of your sites with my comments about your games. I enjoyed many of the games, some will only take minor work to have them running well!

Thursday, April 12, 2007

Card Game

Welcome back Val and Sam! Please get your program updated from one of the others. Make sure that you know how it works as well.

So far we have created three classes:
Card
Deck
Hand

In order to recognize which hand is which, we should add a name attribute to the Hand class that stores the name of the player. This should also be added as part of the initialization.

We now need to create a new string function for the Hand class that prints the name and the cards.

Now we need to create a new class that brings them all together:
class Game():

The initialization should take a list of names, then create a hand for each of these names.
It should also create a deck of cards, then remove the Queen of Clubs from the deck.

Now create a play method that starts by shuffling the deck of cards, then deals all the cards out evenly.

Do as best you can, we'll work with them more on Monday.

Thursday, March 01, 2007

Parsing a String

Create a program that takes input from the user and converts it into a list with a string for each word in the input.

The program should then print each word on a separate line in reverse order.

Next the program asks for a single word.

Check to see if this new word occurred in the original list of words. Print a message telling whether the word given was valid or not.

Now join all the words from the original input with an underscore between them and print that string.

Wednesday, February 07, 2007

Fruitful Functions

You need to create a program that calculates the Area of any given shape.

The program should give the user a list of possible shapes:
Rectangle, Parallelogram, Triangle, Circle, Square, and Trapezoid.

Then you will need to ask for the dimensions of the figure and calculate the area.

You should create functions for each of the different shapes. These functions should have parameters for each of the dimensions of that shape.

We will be talking about the process for each of these things at the beginning of class.

Friday, February 02, 2007

Programming Assignment #1

Splash Screen

For your assignment today I'd like you to create a program that prints a splash screen (welcome screen). It should be at least 12 lines, though it can also include a couple blank lines. Try to make this welcome screen somewhat graphical and not just text (use symbols to draw it).

A splash screen is what appears on the screen as the computer loads a program. It should be a few strings that all appear at the same time. This can be done either with a multi-line string, or with multiple print statements.

Friday, January 19, 2007

Circumnavigation

Today you should be finishing Step 13. Guido is supposed to circumnavigate a rectangle, then an irregular polygon. Both of these should be done with a while loop that is looking for Guido's starting location (a beeper that he drops at the beginning). They should take about 8 and about 12 lines respectively. When you are done with the irregular polygon talk to Travis have him make sure you are doing it properly, then you can move on to Step 14.

Don't forget to post to your blog!

Monday, January 15, 2007

Guido's Birthday

To celebrate his 18th birthday Guido displays 10010 (18 in binary). We are going to attempt a race to see who can tell Guido to display '1010000110110' in the most efficient way.

Community Service


Guido cleans the street. He should be able to clean the street with the same program even with different amounts of garbage. I will give you a couple of different worlds to work with and clean.

Tuesday, January 02, 2007

Welcome to Computer Programming!


Welcome to class! Computer Programming will be a great time to learn. We will be learning new problem solving techniques and new ways to look at problems. We will also be learning a new language with its own grammar and syntax. We will have a lot of fun, and be challenged in many ways!
Course Syllabus

  1. Content
    • How to Think Like a Computer Scientist
    • A Byte of Python
  2. Prerequisites
    • Keyboarding class (or ability to type 25 wpm)
    • Computer Applications
    • Algebra 1 & Geometry
  3. Course Goals
    • To learn the concepts and methodologies of structured computer programming.
    • To become familiar with Python.
    • To analyze problems and learn to think like a computer programmer.
  4. Course Outline
    • Weeks 1-3 Introduction
      • Understanding the thought process behind program creation
    • Weeks 4-9 Python
      • Variable, Functions, Conditionals, and Recurrsion
      • Strings, Lists, and Tuples
    • Weeks 10-18 Python
      • Object-Oriented Programming
      • Classes, objects, functions, and methods
      • Linked Lists and Stacks
  5. Grading Criteria
    • Online Journal -- 40%
    • Assignments -- 40%
    • Quizzes -- 10%
    • Final Project -- 10%

First Assignment

For this class you will need to create a blog site. On this site you will be posting a short journal entry during each class discussing things you have learned or are struggling with. You can also post about the project you are working on and difficulties you are having with it. This journal will be a large portion of your grade (40%). It does not need to be a huge task each day, but I want to be able to see how you are doing and what you are struggling with.

The blog you create needs to be solely used for this class. Be sure that you enable comments for registered users so I can comment on your posts and give you pointers.

Also, once you have created your site, comment on this post and give me the website of your blog. I will be adding links to each of your sites.

To create the page, click on the link at the top of this page "Get your own blog".

The OFFICIAL Dilbert Widget