Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Spaces
Quick Search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
Log In
CS151 Computational Thinking
Pages
CS 151 Computational Thinking Fall 2012
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
Colour picker
More colours
Formatting
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Task list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
Task List
tinymce.confluence.insert_menu.macro_desc
User Mention
JIRA Issue
Info
Status
Gallery
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>Philip Prosapio<br /> Charlie Spatz</p> <p>Code location:pwprosap (Academic Server)- shapeA.py and shapeB.py are included in the single file of shapes.py</p> <p>The command lists that we used as directors are as followed:</p> <p>Exercise 1) An object that has 4 rectangles that protrude from a central square.</p> <p>Exercise 2) An object that consists of four separate <span style="text-decoration: underline;">triangles</span> that are put together to make one bigger triangle.<br /> <span style="text-decoration: underline;">Triangle</span>- equilateral triangles that are all the same size.</p> <p>Exercise 3)<br /> pen down<br /> forward 100<br /> left 90<br /> forward 20<br /> left 90<br /> forward 80<br /> right 90<br /> forward 80<br /> left 90<br /> forward 20<br /> left 90<br /> forward 100<br /> forward 200<br /> left 90<br /> forward 100<br /> left 90<br /> forward 25<br /> left 90<br /> forward 50<br /> right 90<br /> forward 150<br /> right 90<br /> forward 50<br /> left 90<br /> forward 25<br /> left 90<br /> forward 100</p> <p>Exercise 4)<br /> forward 200<br /> left 90<br /> forward 100<br /> left 90<br /> forward 25<br /> left 90<br /> forward 50<br /> right 90<br /> forward 150<br /> right 90<br /> forward 50<br /> left 90<br /> forward 25<br /> left 90<br /> forward 100</p> <p><strong>Write Up Responses</strong></p> <p>1) Yes, the Artist new the meanings of the key words in the description, like rectangle, square and protrude. So it was made easier to draw out the logo or shape.</p> <p>2) We both had a shared knowledge of what the shapes that were used to describe the logo, so this helped the artist to understand the instructions. But when we look back, we realized that more specific information would be needed to draw the exact picture.</p> <p>3) We did not give exact lengths of sides or size of the logos. Also terms like rectangles can be construed in different ways. Since a square is technically a form of a rectangle using the two words in the definition could leave the instructions open to interpretation.</p> <p>4) There was a large amount of ambiguity in our first 2 command sets; we could interpret the commands in multiple different ways. But in the later commands, we needed to be very precise or the computer wouldn’t know what to do. Computers cannot handle any ambiguity at all; they need a well-defined straightforward set of instructions.<br /> There were more commands or information given in task 4 than 3 because the figure for task 4 was a little more complicated and had more angles and sides, which required more commands.</p> <p>5) Yes it helped a lot. Instead of having to retype all of the commands or copy-paste all of them, we could just define the set of commands under one name and just type the name whenever it is needed.</p> <p>6) If we tasked a set of commands to execute itself, then it would execute itself continuously, which is called recursion. Since every time the set of commands reached the bottom, it will command itself to start over again in a never-ending loop.</p> <p>7) We made 3 pentagons of differing size with our last version of our shape command list. We could possibly make many more shapes then we did with the first basic set of commands.</p> <p>8) No, Shape E does not care what list of commands that it called. It will execute any set of commands, no matter what you do to Shape D.</p> <p>9) Understanding how to use parameters. We also ran into problems when trying to use variables. And also some of our designs involved a lot of math to figure out the angles and side lengths.</p> <p><strong>Note</strong>: We have completed two extensions for this lab. In our shapes.py file we have at the bottom our N-gon code and our complex supershape code. The Ngon code obviously completes the Ngon extension and the complex supershape code completes the extension that asks us to make a code that will draw and interesting graphic.</p> <p>This is a thumbnail photo of our interesting graphic!!</p> <p><img class="confluence-embedded-image confluence-thumbnail image-left" src="/download/thumbnails/422544102/Screen%20shot%202010-02-08%20at%204.11.18%20PM.png?version=1&modificationDate=1550535472081&api=v2" data-image-src="/download/attachments/422544102/Screen%20shot%202010-02-08%20at%204.11.18%20PM.png?version=1&modificationDate=1550535472081&api=v2" data-linked-resource-id="422708124" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen shot 2010-02-08 at 4.11.18 PM.png" data-base-url="https://wiki.colby.edu" data-linked-resource-container-id="422544102" title="null > Screen shot 2010-02-08 at 4.11.18 PM.png"></p>
Attachments
Labels
Location
Edit
Preview
Save
Cancel
Next hint
search
attachments
weblink
advanced