Skip to content

Latest commit

 

History

History
71 lines (55 loc) · 2.4 KB

midterm.markdown

File metadata and controls

71 lines (55 loc) · 2.4 KB
layout title
default
MTEC2002 - Programming Foundations for Emerging Technology - Spring 2012 - Midterm Project

Midterm Project

Due Dates

Proposal due by March 21st

Project due on March 28th

Overview

Create a small Python program. The Python program should be chosen from the list of projects below. You must submit your proposal project any time between March 14th (class 7) and March 21st (class 8). The proposal is simply an email containing:

  • your name
  • the project that you're planning on doing
  • a brief description of your project

The actual project is due on March 28th (class 9). You must submit your source file(s) using github.

Project Descriptions

1. Text Adventure

Do Exercise 35 in Learn Python the Hard Way. Add at least 3 other rooms to the program

2. Rock Paper Scissors

Create a commandline version of rock-paper scissors.

Example Output: {% highlight bash %} Hi, what's your name?

Bob Hi Bob, let's play a game of Rock, Paper, Scissors... Type "r", "p", or "s" to play rock, paper, or scissors respectively Type "quit" to leave the game

Round 1

Bob: 0, computer: 0

(r)ock, (p)aper, or (s)cissors

p Bob played p, computer played r Player wins

Round 2

Bob: 1, computer: 0

(r)ock, (p)aper, or (s)cissors

{% endhighlight %}

3. Exploring Python's Built-In Modules

Python comes with many built-in modules. Research one of these modules and create a small program that uses it. Here are some lists of modules:

  1. http://docs.python.org/tutorial/stdlib.html
  2. http://docs.python.org/modindex.html

For example: