Guided Practice 4.3 – Advanced Turtle Graphics
Task 1 – Make pseudocode for advanced turtle graphics
We are going to create a program that creates a bunch of random turtle shapes on the screen and then pulls them together into a circle.
Program Catch_The_Turtle:
Set up turtle screen
Set up list of 100 turtles in an array
Place the 100 turtles randomly on the screen
Create a function to move the 100 random turtles
In a for loop
Move the 100 turtles towards the turtle in front of it
Update the turtle screen
Set a timer to call the function recursively after 2 millisecond delay
End.
Change your pseudocode to 200 turtles in the array and change your recursive call to a 1 millisecond delay.
What would happen if you changed the program to 2000 turtles? What impact would it have on the program?
Deliverables for Task 1
· Your Pseudocode
· Answer the questions about 2000 turtles
Task 2 – Putting the program together
First, we need to import the turtle and random modules and then set up the turtle screen.
Add a list called chasers with 200 members
Then, using a For loop, place them randomly on the turtle screen.
Run your program to verify that your shapes are placed and working in your program. Take a screenshot.
Define your turtle automation function by moving the turtle and then moving all chaser objects to follow the turtle.
Next, update your turtle screen and then call the function again after 1 millisecond
Finally, call your function and then exit the turtle graphics screen.
Run the program and take a screenshot of your completed code and running program.
What problems are there with the program? How could you correct them?
Deliverables for Task 2
· Screenshot of your turtle screen before the animation
· Screenshot of code and running program
· Answer questions about how to fix the program
Task 3 – Adding color
Although the program is works it is very dull since it is all the same color. Let’s change up the program by adding some color to each of the chasers on the page.
The color system we are going to use is called colorsys. IT takes color values and convers them into colors on the screen. These values are called RGB or red, green, blue which is what is used by your computer to make colors.
The command we will use is colorsys.hsv_to_rgb(h, s, v) where h, s and v are values between 0 and 1 which define the color of each object. Finally we’re going to give the turtle to color green so it will be the same color each time.
You also might want to change the delay to 0 milliseconds by change screen.ontimer(MoveTurtle,0). Take a screenshot of your completed program code and runtime screen.
Deliverables for Task 3
· Screenshot of your completed colorized code and runtime screen.
image3.png
image4.png
image5.png
image6.png
image7.png
image1.png
image2.png
Get Your Paper Before the Deadline. Our Services are 100% private and Confidential
Useful Links That Will Help You Around
Link to new order https://studentsolutionsusa.com/orders/stud/new
link to login page https://studentsolutionsusa.com/orders/login
New user registration link https://studentsolutionsusa.com/orders/register
Forgot Password https://studentsolutionsusa.com/orders/forgot/password
FREQUENTLY ASKED QUESTIONS
Question: How does this work?
Answer: Good Question. We are a group of a freelance board of students and professional essay writers. At our website, you may get help with any type of academic assignments: essay, coursework, term paper, business plan, case study, article review, research paper, presentation, and speech. Top writers can help with complex assignments such as dissertations, thesis papers, etc. All of them are professionals possessing excellent knowledge in their field of expertise, perfect writing skills, quality, and speed. When you place an order on our website, we assign it to the best writer. Once the writer finishes the work, the paper is submitted to our quality assurance desk who go through it and ensure it is unique and plagiarism free and that the instructions were followed to the detail. After this step we upload the paper in your account, we also send a copy to the email that you used to register the account with. we can guarantee you that the paper will be 100% plagiarism free. Besides, our services are 100% private and confidential
Question: How do I place an Order after getting to the order page
Answer: There are three major steps in the ordering process
Step 1 ....................................................paper details In this step, you will fill in the instructions of your paper; you can upload any materials that you feel will make your assignment a success. Besides, you can also email us at [email protected] Remember to specify the correct academic level. Please note that sources mean the number of references.
Step 2...................................................... Price calculation Kindly specify the number of pages, type of spacing and the correct deadline. This step will give you the estimated cost minus discount -- you may add the extra features if you wish.
Step 3 ....................................................discount and payment Use the discount code HAPPY2018 to enjoy up to 30% discount of your total cost After this step, proceed to safe payment; you can checkout using your card or PayPal Please note we will send the complete paper to the email you will provide while registering. A copy will also be uploaded to your account
Question: How will I know when my paper is complete? or How will I get the complete Paper?
Answer: Once we are done with the paper, we will be uploaded to your account. A copy will also be sent to the email you registered with. We can guarantee you the following:- 1. Our service is private and confidential; we don't spam or share your contacts with anyone 2. The final paper will be plagiarism free. We will send a Turnitin Report to the email you registered with 3. At our company, willing to do free unlimited revisions until you are satisfied with your paper
Question:- Am a new client, How can I get the guarantee that the paper will be completed and sent to me before my deadline?
Answer: Thank you for expressing your concerns. We would love to have you as our loyal customer. We are certain if we do good work, you will come back for me. Besides, you will give us referrals to your friends and family. For that reason, we can’t fail to deliver your paper within your specified time frame. We will ensure we submit the paper on time so that you can have enough time to go through it, if you have problems with the paper delivered, you can request a free revision. You are entitled to as many revisions as you would wish until you get a paper that satisfies you
Useful Links That Will Help You Around
Link to new order https://studentsolutionsusa.com/orders/stud/new
link to login page https://studentsolutionsusa.com/orders/login
New user registration link https://studentsolutionsusa.com/orders/register
Forgot Password https://studentsolutionsusa.com/orders/forgot/password