Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need to create a C program that will print to a file a set of Mandlebrot point

ID: 640985 • Letter: I

Question

I need to create a C program that will print to a file a set of Mandlebrot points. If the point is in the Mandlebrot set it will print a * to the file if not it will print a space.

The file should print out a set of characters 75 x 75

I thought I had it written correctly however all I get is a completly blank file. I thought the algorithm I had written was wrong so I posted on here for a new one, and tried it and am still getting the same results. So I guess it must be in my code itself. Here is the flow charts for both the algorithm, program, and output example.

I will be offering a large amount of points so heres what I would like if possible

A complete working code, with the mandlebrot algorithm as a function.

Thanks for your help

Explanation / Answer

/* Sequential Mandelbrot program */ #include #include #include #include #include //#include #define X_RESN 80 /* x resolution */ #define Y_RESN 50 /* y resolution */ typedef struct complextype { float real, imag; } Compl; int main(int argc, char **argv) { /* Mandlebrot variables */ /* drawing */ // cairo_surface_t surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120); // cairo_t *cr = cairo_create (surface); /* Calculate and draw points */ unsigned i; for (i = 0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote