Here is the code in Python
number_of_pentagons = 4 # change the number to draw as many pentagons
========================================================================
import turtle
def drawPentagon(t, side_length):
for s in range(5):
t.forward(side_length)
t.left(360//5)
def main():
length = 20
number_of_pentagons = 4 # change the number to draw as many pentagons
t = turtle.Turtle()
s = turtle.Screen()
for pentagon in range(number_of_pentagons):
drawPentagon(t,side_length=length)
t.penup()
t.right(90)
t.forward(10)
t.left(90)
t.back(10)
t.pendown()
length+=20
s.exitonclick()
main()



Design and implement a single program: • to produce a simple graphical representation of a set...
The following guidelines outline the basic template for a robot vacuum cleaner game. The game must be implemented in c programming language. It mimics a robotic vacuum cleaner. The code must only use the following libraries: #include <math.h> #include <stdlib.h> #include <string.h> #include <limits.h> and any .graphics and .timers libraries. The guidelines are outlined as follows: Terminal Set-up: you may assume that the terminal will be quite large, for example, on the order of 150×50, or more. Status Display: The...
The following guidelines outline the basic template for a robot vacuum cleaner game. The game must be implemented in c programming language. It mimics a robotic vacuum cleaner. The code must only use the following libraries: #include <math.h> #include <stdlib.h> #include <string.h> #include <limits.h> and any .graphics and .timers libraries. The guidelines are outlined as follows: Terminal Set-up: you may assume that the terminal will be quite large, for example, on the order of 150×50, or more. Status Display: The...