Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSC 1 1 0 Project - Cardstock Cube Decorated with Turtle Patterns The final product of this project will be a cardstock decorated cube. With

CSC 110 Project - Cardstock Cube Decorated with Turtle Patterns
The final product of this project will be a cardstock decorated cube. With the turtle module, you
will draw the skeleton for the cube and a pattern on each side (a different pattern will be
assigned to each student). I will print your turtle code image directly on an 8.5in.x11.0in.
sheet of cardstock using a color laser printer.
The projects will be broken down into multiple steps that will be made available and explained
over the course of the next weeks. See next page for an example of a possible final product.
*** First step: draw the skeleton. Submit in Runestone.
Write a helper function square (t,sz) that draws a square of side length sz with a turtle t. You
must use a for loop in the function. Add a "docstring" or a comment below the function header
to specify the starting point of the square (e.g. top-left corner).
Write a helper function (name it as you like) cubeTab(t,sz,L) that draws the top tab of the
skeleton with a turtle t. Refer to the picture for sz and L.
Write a function (name it as you like) B_with_tabs (t,sz,L) that draws the pattern with square B
with the left and right tabs.
Write a function (name it as you like) CAC_with_tabs (t,sz,L) that draws the squares CAC with the
left and right tabs.
In the main program, assign values for sz and L and invoke the helper functions to draw the
skeleton. You will have to move and/or change the orientation of the turtle according to its
position before invoking those functions.
Important: on a sketch of the cube skeleton, show your starting point and the main steps of
your code. Later you will have to explain your code to me, and this will help you do that.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

7 8 6 . .

Answered: 1 week ago

Question

=+4. What do you think?

Answered: 1 week ago