Question: Design and implement a single program: to produce a simple graphical representation of a set of squares, as shown in Figure 2 (below). The output
Design and implement a single program:
- to produce a simple graphical representation of a set of squares, as shown in Figure 2 (below). The output should consist of 4 squares with sides of length 20, 40, 60 and 80 respectively, arranged in a diagonal as shown.
- that, in principle, can produce larger numbers of squares simply by changing one number that specifies the number of squares.
- with the turtle starting at the bottom left-hand corner of the bottom square and pointing to the right.
a. Produce a top-level decomposition, making use ofexactly one loop. At this stage express your answer in terms of two sub-problems.
b. Refine your decomposition to give an algorithm, as you include extra detailmake use of a second loop.
- c. Translate your algorithm into Python, including appropriate comments

Python Turtle Graphics
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
