Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Turtle Patterns 1 : f you look around the web, you can find examples of many projects that draw pictures, scenes, landscapes, geometric patterns, or
Turtle Patterns : f you look around the web, you can find examples of many projects that draw pictures, scenes, landscapes, geometric patterns, or interesting doodles using Python turtles. For this project you will draw a picture, scene, landscape or doodle that has identifiable patterns. The things that appear in your doodle must be built by combining different atomic shapes or patterns and using repetition. Atomic means its a building block that you dont break down into anything else. Use your imagination, but if you struggle too much, simplify your goals. Some examples of common geometric shapes, which might give you ideas can be found here.
User inputs for this project should be the turtle windows width and height values from the console. They should be positive integers only and should be validated. These values should then be used to set the size of the window. You must document in your module docstring what the window size should be
Key ideas in this project are HOW you organize your code. Use parameterized functions as building blocks and loops wherever there is repeated code with variations. Here is one example of an approved resource for scene building.
They give you an idea, some skeleton code, some test code, and a little bit of example code to use, but you have to do the real thinking and the developing work. As always, if you are unsure about some resource, you can ask the instructor for approval.
The Python turtle graphics documentation can be found here.
Keep in mind that you will revisit this code later for Project but dont get hung up on that, and save any advanced features for Project dont do them for this project.
Logistics
Starter Code
You are given the starter code in the file doodles.py You must use this file. Add code and comments in the places indicated. Do not change the other parts that have been given, and do not worry if you dont fully understand all of the code now, because you will later. Youll notice that there are test cases for the code that has been given. By intent, if you do mess up certain parts of the code, your program wont pass those cases.
Rubric
In the cases below, shape refers to any shape or pattern.
Automatic Tests points
points If user enters anything other than positive integers for window width and height, print Width and height must be positive integers. and exit.
points Code has a main function with conditional execution.
points Code uses snake case for variable names.
points The style checker pylint with a custom configuration emits no warnings.
Manual Tests points
points The scene includes at least different shapes, each encapsulated by a function with parameters.
points Atomic shapes appear with different fill colors and border colors in different locations.
points Atomic shapes appear tilted or rotated.
points Atomic shapes appear in different sizes.
points Loops are used to reduce any repeated code.
points Your file has a module docstring with required information in it
Starter Code in Question:
Project Name: Turtle Patterns
Author:
Due Date:
Course:
Put your description here, lessons learned here, and any other information
someone using your program would need to know to make it run.
# add functions here that your main program calls
# to do stuff.
def main:
Program starts here.
try:
# replace pass with your code
pass
except ValueError:
printWidth and height must be positive integers.
return
if width or height :
printWidth and height must be positive integers.
return
# replace pass with your code
pass
if namemain:
main
I would like a full solution in python final code for the whole project that fits criteria and maybe a walkthrough. I am pretty lost. Thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started