Bill Manaris : Spring 2017 / CITA 180 Homework 2

Assigned Date: Monday, Jan. 30, 2017
Due Date: Monday, Feb. 6
Due Time: 30 mins before class

Last modified on January 31, 2017, at 07:37 PM (see updates)


Write a Jython program that generates an interesting piece of music.

The piece should contain at least three Parts with different instruments.

It is OK to add percussion (drums), if you wish.


The Golden Rule of Style: "A program should be as easy for a human being to read and understand as it is for a computer to execute." [1]

In general, you should comment any variable, obscure statement, block of code, etc. you create.

Follow the documentation instructions from Homework 1. In particular, your header documentation should mention the name of the piece where the melody comes from, and, if you used a score available on-line, include the URL where the score can be found. (:sourcend:)


You will submit your assignment by both handing in a printout of your program in class, and on-line via OAKS.

Be prepared to perform your music in class.

Do all of the following:

  1. Hand in a printout of your Python program in class on the due date.
  2. Upload your program file on OAKS. Give your program a meaningful name, e.g.,
  3. Be ready to perform it in class.
  4. If you do the bonus, submit a separate, additional program. Give the program a different meaningful name.


Your grade will be based on how well you followed the above instructions, and the depth/quality of your work.

Learning Objectives

This assignment has the following objectives:

Also how to:


  1. Cooper, D. and Clancy, M. (1985) "Oh! Pascal", 2nd ed., W.W. Norton & Company, New York, p. 42.
(Printable View of