sing-and-dance

sing-and-dance - #

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC 143: Introduction to Object-Oriented Programming with Robots Assignment 1: Sing and Dance Due September 15, 2010 The first assignment asks you to write a program to make your robot sing (well, beep!) and dance. You should write a dance routine (a function named dance() ). Your Python program should include the following components: 1. An effectively commented program, including your name, the date, email and explanations of any complicated code. For example, the first couple of lines should look like #################################################################### # # Keith O’Hara <kohara@bard.edu> # Sep 1 2010 # # Assignment 1 description
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: # #################################################################### def dance(): 2. Take some input from the user (using the raw input function) to determine the dance behavior (e.g. length, number of steps, tempo, key). 3. Use a looping construct ( for or while loops). Learning Objectives How to write functions. How to use loops. How to get input from the user. How to properly document a program. Deliverable Submit an electronic copy of your program via moodle. It should be named: cmsc143 sing and dance NAME.py . CMSC 143 (Fall 2010): Sing and Dance Assignment 1 of 1...
View Full Document

This note was uploaded on 10/14/2010 for the course CMSC 143 taught by Professor Keitho'hara during the Spring '10 term at Bard College.

Ask a homework question - tutors are online