Skip to main content
Contents Index
Search Book
close
Search Results:
No results.
Dark Mode Prev Up Next Scratch ActiveCode Profile
title here
\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 18.4 Program Implementation - 2
Now that
rectangle is working, we can use it to write our next procedure. I will tackle
drawWall next. This procedure will take the name of the turtle, set a color, and then draw a 300x200 rectangle.
Checkpoint 18.4.1 .
We want to write the code for the
drawDoor procedure. Below is the code for it.
def drawDoor(currentTurtle):
______________.fillcolor("black")
rectangle(______________, 50, 100)
What name belongs in the ______________?
You have attempted
of
activities on this page.