COMP 144 Programming Language Concepts
Spring 2004


Assignment 4: Second Perl Script

Due Date: Mon Feb. 16


Description

Your task in this assignment will be to write a Perl script that does the Mandelbrot image as you did in Java.

You must write at least two subroutines in this program, and they must be well chosen (i.e., they can't be trivial simply to satisfy the requirement to have 2). You must also use at least one hash (associative array) in solving the problem.

For now, for next Monday, do this:

  1. Write your Mandelbrot program in Perl, and simply save the "picture" information as a 2-dimensional array of colors (small integer values). We will later add to this the ability to take those point colors and generate a bitmap image to put into the window.

    To make things a tad nicer for now, keep the image size down to, say, 60 x 60, and print the color array out as the product of the program. We will bump the image size back up to something like 500 x 500 for the final version.

    Have it take the same input parameters as before (as the Java one).


Submission

This assignment is due Feb. 16 (during the first ten minutes of class). Late assignments get 25% off each day they are late. Your submission will be electronic. Your electronic submission will be an e-mail sent to wluebke@cs.unc.edu with the subject

COMP 144 Assignment 4 Submission

and a single .zip file attached to it. This file should have the following content:

In addition, you must hand in a printed version of your design and accomplishments document.


Grading

I will grade both the quality of the source code (design and documentation) and the output. I will not grade programs that do not compile. Collaboration is encouraged, but you cannot share source code. Honor Code applies to this program. Please, read http://www.cs.unc.edu/Admin/Courses/HonorCode.html for more details.