Can someone help me with this problem.
- From: "Mike " <tikirules1993@xxxxxxxxx>
- Date: Wed, 6 Jun 2012 20:59:08 +0000 (UTC)
Using generateMan from the extra content of Lecture 04, create a structure array containing the Mandelbrot set image for real values between -1.5 and 0.5 and imaginary values between -1.2 and 1.2. The structure array should contain the actual image, the domain it represents, and a field called parent indicating within which record the image resides. The parent for this base image is 0.
Create a for loop inside of which the user is prompted to create 4 new Mandelbrot images. In each case, query the user which record in the structure array to use as the parent image. Re- prompt the user if they attempt to enter an invalid record number. Pass the current structure array and the valid parent record number to a function addNewMan. Save the structure array to the current directory after the for loop completes successfully.
Compute a new Mandelbrot image with the specified parent in addNewMan, add it to the structure array, and return the new larger structure array. To accomplish this, draw the chosen parent image with displayMan from the extra content of Lecture 04 and use ginput to define the bottom left and upper right corners of the domain for the new image. Use generateMan to produce the new child image and append a record for it to the structure array with its domain and parent appropriately stored. The parent field will be utilized in a later homework problem. Display the new image using displayMan before returning.