Inside the file sierpinski.py is a function called sierpinski(). The function takes several inputs. • The first parameter, degree, is the degree of the Sierpinski Triangle—how many further levels of recursion will be applied when drawing the Triangle. • The next three parameters, p1, p2, p3, are the points that will be used to draw the next triangle. • The fourth parameter, color, is the initial color that will be used to draw the Triangle. • The fifth parameter, line_width, is used to specify the width of the line used to draw the Triangle. This should be a positive integer. If it is set to 0, then the Triangle will be filled with the selected color when drawn. • The final parameter, screen, is the pygame surface object upon which the Triangle will be drawn. You should not have to change the value passed to this parameter. You are given a function, draw_triangle(), that will draw a triangle on the given surface at the given points in the given color. You must implement the function find_midpoint(), which takes two points as input, and which returns the point that is midway between the two input points. Students should use the draw_triangle() and find_midpoint() functions in order to implement the sierpinski() function. Their implementation will be recursive. The sierpinski() function will call itself. Think about how many recursive calls must be made in each call to the sierpinski() function. Think about when and how to stop the recursion so that you construct a Sierpinski Triangle of the given degree. Experiment with color, line width, etc. to see what sort of effects you can produce when drawing the Sierpinski Triangle. Submission: Turn in the sierpinski.py file with the completed find_midpoint() and sierpinski() functions through Blackboard. A diversion: fractal dimension: In grade school, we learn that the dimension of a line segment is one, the dimension of a square is two, and the dimension of a cube is three. But you probably didn't learn what is really meant by dimension. How can we express what it means mathematically or computationally?
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme