Question
I NEED HELP WITH MY CS192 PROGRAMMING ESSENTIALS WEEK 7 ASSIGNMENTS PYTHON 3 CODE THAT I HAVE ALREADY GOTTEN HELP WITH WRITING, ALTHOUGH THERE ARE
I NEED HELP WITH MY CS192 PROGRAMMING ESSENTIALS WEEK 7 ASSIGNMENTS PYTHON 3 CODE THAT I HAVE ALREADY GOTTEN HELP WITH WRITING, ALTHOUGH THERE ARE STILL SOME ISSUES THAT I NEED ASSISTANCE WITH FIXING THESE ISSUES TO HAVE NO ERRORS IN MY CODE TO HAVE AN EXIT CODE OF 0 WHEN FINISHED PLEASE AND THANK YOU!
MY CODE IS AS FOLLOWS, AND I'VE ATTACHED SCREENSHOTS OF THE ASSIGNMENT 7 INSTRUCTIONS AND DETAILS AS WELL AS ALSO MY CODE THAT WAS ALREADY RUN AND ALL THE SHOWN ERRORS IN THE CODE AND ALSO IM USING ONLINE GDB DEBUGGING FOR REFERENCE HERES MY CODE AS FOLLOWS:
import turtle import random
def random_color(): r = random.randint(0, 255) g = random.randint(0, 255) b = random.randint(0, 255) return (r, g, b)
frogscreen = turtle.Screen() frogscreen.bgcolor("blue") frogscreen.title("Programming Essentials - Week 7 Assignment")
frogger = turtle.Turtle() frogger.shape("turtle") frogger.color("red") frogger.speed(5)
frogscreen.colormode(255)
# Stamp and drawing settings stamp_size = 20 line_length_factor = 10 turn_angle = 24 num_stamps = 60
# Start Stamping for i in range(num_stamps): frogger.penup() frog_shape_size = ((i + 1) * stamp_size) / num_stamps frogger.shapesize(frog_shape_size, frog_shape_size) frogger.pencolor(random_color())
# Change background color randomly every few iterations for a more engaging output. if i % 3 == 0: frogscreen.bgcolor(random_color())
line_length = (i + 1) * line_length_factor
frogger.forward(line_length) frogger.stamp()
# Display your name on the canvas after halfway through the Loop. if i == num_stamps // 2: frogger.write("SHAUNA", align="center", font=("Arial", int(stamp_size), "normal"))
# Move and turn the turtle frogger.right(turn_angle)
# Hide the turtle after finishing the stamps/drawing. frogger.hideturtle() frogscreen.mainloop()
Programming Essentials - Week 7 Assignment Week 7 Assignment A turtle can "stamp" its footprint onto the canvas, and this will remain after the turtle has moved somewhere else. Modify the turtle footprint below to complete the following tasks: Create a 1-minute turtle footprint with custom attributes (size, pattern, color, direction, etc.) Customize the shape pattern drawn by the turned and change at least 5 attributes. . Change the background color of your canvas and display your name on the canvas. A https://trinket.io Share Code from any Device Trinket lets you run and write code in any browser, on any device. Trinkets work instantly, with no need to log in, download plugins, or install software. Easily share or embed the code with your changes when you're done. ? Remix main.py shapes.py + + 0 1 import turtle 2 frogscreen = turtle. screen() 3 frogscreen. bgcolor ("blue") 4 frogger = turtle. Turtle() 5 frogger . shape ("turtle") 6 frogger. color ("red") 8 frogger . penup() 9 size = 20 10 - for i in range (20): 11 frogger . stamp( # Leave an impression on the canvas 12 size - size + 3 # Increase the size on every iteration 13 frogger . forward(size) # Move frogger along 14 Frogger . right (24) ... and turn her 15 16 frogscreen. mainloop ()Rubric: Use this assignment template to insert the assignment deliverables outlined below. Assignment template link Deliverables: . Your Python code in a Word document (do not submit screen shots of your code). . A screenshot of your code after execution with a date and time stamp (run). How to Take a Screenshot Grading Criteria Assignments Maximum Points A copy of the program code was not submitted, or . A screenshot of the program execution with time stamp was 1 not submitted Program accomplishes requested operations per instructions. 1. Create a 1-minute turtle footprint with custom attributes (size, pattern, color, direction, etc.). . Customize the shape pattern drawn by the turtle and change 40 at least 5 attributes. 3. Change the background color of your canvas and display your name on in the canvas Submission demonstrates proper use of variables, operators, input, 40 comments, and print commands. Meaning of the output is clear (i.e. instructions for input and labels 20 for output data are provided and displayed on the screen). TOTAL 100 COPYRIGHT 2018 GRANTHAM UNIVERSITY\f\f\f\fStep 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