Turtle Graphics is a Python feature like a drawing board, which lets us command a turtle to draw all over it! We can use functions like forward(...) and right(...) which can move the turtle around. Commonly used turtle methods are found in the posted pdf file "turtle -

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

helppppp

Turtle Graphics is a Python feature like a drawing board, which lets us command a turtle to
draw all over it! We can use functions like forward(...) and right(...) which can move the
turtle around. Commonly used turtle methods are found in the posted pdf file "turtle -
Turtle graphics- Python 3.7.1rc1 documentation"
To make use of the turtle methods and functionalities, we need to import turtle. "turtle"
comes packed with the standard Python package and need not be installed externally. The
roadmap for executing a turtle program follows 3 steps:
1. Import the turtle module
2. Create a turtle to control.
3. Draw around using the turtle methods.
Problem:
a- Based on what you have learned in this course and using the appropriate commands,
you are asked to implement a python program that draws the below diagram using the
turtle.
3
You should consider the following points in your solution:
1- The program should not contain any user-defined function.
2- The number of circles is 36, the starting radius is 100, and the offset angle that should
be used each time to turn is10.
3- You should equally distribute the colors among the circles in your program, and you
should select the colors from the colors list:
colors=['brown', 'red','magenta', 'blue','green','orange']
4- Your program should include only one loop.
5- Make sure to set properly the starting position (x & y) of your drawing, to maintain the
above diagram.
b- Try to change either the number of circles or the turning angle value. Discuss the impact
of this change on the diagram and explain the reason behind that. 5 marks
Transcribed Image Text:Turtle Graphics is a Python feature like a drawing board, which lets us command a turtle to draw all over it! We can use functions like forward(...) and right(...) which can move the turtle around. Commonly used turtle methods are found in the posted pdf file "turtle - Turtle graphics- Python 3.7.1rc1 documentation" To make use of the turtle methods and functionalities, we need to import turtle. "turtle" comes packed with the standard Python package and need not be installed externally. The roadmap for executing a turtle program follows 3 steps: 1. Import the turtle module 2. Create a turtle to control. 3. Draw around using the turtle methods. Problem: a- Based on what you have learned in this course and using the appropriate commands, you are asked to implement a python program that draws the below diagram using the turtle. 3 You should consider the following points in your solution: 1- The program should not contain any user-defined function. 2- The number of circles is 36, the starting radius is 100, and the offset angle that should be used each time to turn is10. 3- You should equally distribute the colors among the circles in your program, and you should select the colors from the colors list: colors=['brown', 'red','magenta', 'blue','green','orange'] 4- Your program should include only one loop. 5- Make sure to set properly the starting position (x & y) of your drawing, to maintain the above diagram. b- Try to change either the number of circles or the turning angle value. Discuss the impact of this change on the diagram and explain the reason behind that. 5 marks
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education