Please help with this assignment, any help with tasks after four…
Question Please help with this assignment, any help with tasks after four… Image transcription textArea Approximation Area of Rectangles = 12077.14Sample 3 def main () : windowWidth = 350 windowHeight= 350 window = createwindow (windowWidt… Show more… Show moreImage transcription textArea Approximation Area of Rectangles = 7245120090000001 Sample 2 def main () : windowWidth =350 windowHeight = 350 window = creat… Show more… Show moreImage transcription textdef getApproxArea (x_coordinates, y_coordinates)Parameters: x_coordinates (list), y_coordinates (list) Returnvalue: total area of all rectangles (float) interval… Show more… Show moreImage transcription text# Note the output depends on which two corners you usedto create the rectangles. # The following rectangle pointsobtained using case #1 (upper left and lower ri… Show more… Show moreImage transcription textHint: Given a the x_coordinates, and y_coordinates list, arectangle like case #1 can be constructed as follows:PointA – Point (x_coordinates[i], windowlleigh… Show more… Show moreImage transcription textTask 5: implement the getRectanlgesList. function A pair of X andY values obtained from x_coordinates list and y_coordinates listrepresent the upper left corner of a rectangle. Rem… Show more… Show moreImage transcription textdef f(x) : Parameters: x (Integer) Return value: 0.001 * +2(float) Testing: Y = f(5) print (y) #0.025 Task 4: implementthe getYCoordinates function The get YCoor… Show more… Show moreImage transcription textinterval = [1, 7] rectangleWidth = 2 resultList . append (interval[0]) temp* = 1 + 2 = 3 3 < 7 True resultList = [1, 3] temp* = 3 + 2 = 55 < 7 True resultList = [1, 3, 5] tempX = 5 + 2 = 7 7 ... Show more... Show moreImage transcription textdef createWindow (windowWidth, windowHeight) Parameters:windowWidth (Integer), windowHeight (Integer) Return value:window (graphics object) Expected Output: You may... Show more... Show moreImage transcription textThe following steps summarize the project tasks: Task 0:program set up and add short description comments in theheader arca. Task 1: Implement createWindow ... Show more... Show moreImage transcription textImplementation Note: . Make sure that graphics . py is on thesame directory where you keep project4. py The graphicslibrary does not work in Jupyter Notebook Grad... Show more... Show morePlease help with this assignment, any help with tasks after four are greatly appreciated! Computer Science Engineering & Technology Python Programming CS 177b Share QuestionEmailCopy link Comments (0)


