Question: IMPORTANT!! PLEASE READ THE FULL QUESTION BEFORE ANSWERING. THIS HAS ALREADY BEEN ANSWERED WRONG MULTIPLE TIMES DUE TO EXPERTS NOT READING THE QUESTION AND COPYING

IMPORTANT!! PLEASE READ THE FULL QUESTION BEFORE ANSWERING. THIS HAS ALREADY BEEN ANSWERED WRONG MULTIPLE TIMES DUE TO EXPERTS NOT READING THE QUESTION AND COPYING AN ANSWER TO A DIFFERENT QUESTION

IMPORTANT!! PLEASE READ THE FULL QUESTION BEFOREIMPORTANT!! PLEASE READ THE FULL QUESTION BEFOREbroken_600.png

IMPORTANT!! PLEASE READ THE FULL QUESTION BEFORE

a) Write a program to draw a picture in Python using the ImageDraw class and then frame the picture according to the following criteria: EACH function in your program must state its purpose in comments. Ensure you group your code into logical blocks and use comments to explain each block. Coding style is important! - When the main function frame_picture(file_name) is called, it should: (a) call two helper functions: fix_frame (file_name) draw_picture() (b) resize the drawn picture so it is 80% of the frame's width and height (c) paste the resized picture into the frame centering it vertically and horizontally (d) show only the final framed picture - The helper function fix_framefile_named will: (screenshots on next page) (a) open the broken frame picture indicated by file_name (b) crop the green, yellow, blue, and red sections from the broken frame (c) resize the yellow, blue, and red sections to match the green section (d) rotate the yellow and blue sections to match the expected orientations (e) paste the four sections into their correct locations to fix the frame (f) return the fixed frame picture To work properly on both broken frame files provided ( 'broken_ 600. png' and 'broken_ 760 .png' ), all coordinates used in this function should be calculated by the program using the frame's width and height. Do not hardcode coordinates! - The helper function draw_picture() will create and return a new picture with an equivalent width and height of at least (100,100). For this function, coordinates can be hardcoded. The picture must nave a minimum of: 2 circles (or ovals) 2 rectangles (or squares) 2 lines 2 triangles A title that describes your picture Four or more visibly different colours A sample picture drawn fitting these criteria has been provided, but the subject matter of your picture is of your own choosing. Please be creative and have fun with it! - The pictures below demonstrate how 'broken 600. pna' is fixed and then filled

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!