|
![]() |
||||
|
Home |
Resources |
Assignments |
Exams |
![]() |
![]() |
|||
CS101 Homework 4.5: Complex Numbers and the Mandelbrot SetMini-assignment due Tuesday, October 30We are giving you a pretty easy and fun mini-assignment due this coming Tuesday at midnight. Write and submit a program called Mandelbrot.java that uses our Object-Oriented Complex number class to draw Mandelbrot sets. The program should operate in the same way (e.g., take the same inputs and produce the same results) as the Mandelbrot program presented in the lecture notes. You can use whatever you wish to use from the lecture notes. You might have to modify the program slightly to use your complex class. This assignment is intended to be not too hard, and interesting: to clearly illustrate the power you get by defining your own new types. The Mandelbrot program is written in terms of Complex numbers as if they had been built into Java, but of course they are not! You created the new type, Complex, in effect introducing it into the language. Software engineering is about a lot more mere programming. At a deeper level, software designers spend a lot of time deciding what abstract types are needed and precisely what abstract interfaces they should have to make it easy to write the applications that one really wants. SUBMISSIONSubmit Mandelbrot.java and ComplexOOP.java as usual. |