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.

The OFFICIAL Dilbert Widget