CS 104-Fall 2021 Homework 2 SNAP! Data Structure and Search Blocks This assignment will take you approximately 6 hours to complete, so please allot adequate time for completion. It is due Friday...

1 answer below »
I need this done in snap like the last one please! Need it before midnight 10/24


CS 104-Fall 2021 Homework 2 SNAP! Data Structure and Search Blocks This assignment will take you approximately 6 hours to complete, so please allot adequate time for completion. It is due Friday October 22nd at midnight via the Homework 2 Assignment Link on the CS 104 Blackboard Course Homepage. Late penalty will not be assessed until Sunday October 24th at midnight. You must create an account in SNAP! and save your assignment with a sharable link. Include your shareable link as part of your submission. Assignment Description: Using the list feature of SNAP!, you will create a program that constructs a shape. The program must feature 3 lists: Length of line drawn (how many steps) Direction of turn (direction to turn pen) Pen up or Pen down (draw or not to draw) You will create a custom block (Draw) that will be used to implement the drawing of shape on the SNAP! canvas. Additionally, you will create a second custom block (findLongest) that will search the shape program’s length of line list to find the largest side.. Finally, you will use the SNAP! aesthetic features and upload two images. One image will replace the sprite as it draws the shape. The other will represent the search program. **Definition of a Shape For the purposes of this assignment here are some parameters for the shape 1.) More than 4 sides 2.) Closed off a. Meaning it cannot be lines just drawn all over the canvas. The lines have to connect to create a shape. b. Multiple shapes connected to create an image is ok c. Multiple shapes on the canvas to create an image is also ok d. Can not reuse the same shape multiple times on the canvas (i.e. do not draw 5 triangles) Assignment Specifics:  Students will choose their own shape  The shape does not need to have 30 sides (e.g., some of the movements may be when the pen is up and a physical side is not drawn, but a movement made), but the “pen” must make 30 moves (steps), 30 turns (direction), and 30 pen up or down movements.  All “sides” and pen up/pen down values will be inside the lists. Moves by the sprite outside the list, while might be needed, will not count towards the required 30 values. (i.e. making sprite go to center of screen so drawing does not go off canvas)  Pen will only be allowed to move across a previous path up to five times, meaning the pen can only trace over a previous line/space up to five times.  Sprite images must be no larger than 3MB or you may have trouble saving.  Sprites must use a command that activates the program when clicked.  Two different sprites must be visible on one stage, and each sprite must show the correct program in their scripting areas.  Correct categories of custom block must be used.  Overall, there should be no less than 2 custom blocks  Boolean Values are to be used for at least 1 of the lists  The program must be implemented in SNAP! and saved appropriately so that it can be shared with the instructor.  In submission on Blackboard students will either “write submission” or use the comment area to describe the shape they are attempting to create and Why they chose that shape. Tentative Rubric: Grade Breakdown Points Possible Minimum of 30 steps 5 Minimum of 30 directional changes 5 Minimum of 30 pen up and down inputs 5 Boolean Values are used for one list 5 Direction, Pen, and Steps are presented in a data structure (list) 5 Custom Draw block is present, the correct category is used, and it is inside the scripting area of one sprite 12 Custom findLongest block is present, the correct category is used, and it is inside the scripting area of the other sprite 12 Two Sprites are present on one stage 5 Sprites activate only when clicked 5 No more than 5 repeat movements are observed 5 findLongest block presents the correct value 6 Sprites work when clicked 5 Shape/Picture is drawn on the canvas, no part is drawn outside the borders of the canvas 5 Programs run effectively and generate the correct result 5 Project was saved and submitted correctly 5 All unnecessary blocks are removed from scripting area before submitting 5 Narrative of what the shape is and why it was chosen is present 5 Total: 100
Answered Same DayOct 24, 2021

Answer To: CS 104-Fall 2021 Homework 2 SNAP! Data Structure and Search Blocks This assignment will take you...

Neha answered on Oct 25 2021
136 Votes
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAEjpJREFUeF7tnXmczdUbx99DKgwyNAZNSJIWy9h/iiFiEhLih1+WiBEqP1FKVIiKVEJFUcY29m0UZmRLtmbGMOhXsjP2PQz393q+t6+G7ty5y7nzvTPO+YeZOed5nvM5n3uW53nOuQE2m812jD+IZSz7SKQ4D/MEL3E395FZJZVLjKUNNq4SyQxuJ3dmqdZ6LEYgYIdtpW0R7xtmhPEMdeluiUlC/pn0I5TyPMcHltiglWY+AgEf2Rra8hFMBH2NwbeyLGEEycTxFP0pR10rTdG6MwmBgHm2wbZmDMokdRmrmcSLHGcvnfiSIO7NuIGukaURCJA9oD/1QC/F/jQavrfF7wgoXf6Z6axhEjX4N7Xo4HsUtAbLEPBLAgoaciCR2VAOJFbvTS0bnVtAccBeW4LNHwf4FAeZSGcKUpzOTLwFhu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ZqAmgOWIqAJaCn8WrkmoOaApQhoAloKv1auCag5YCkCmoCWwq+VawJqDliKgCagpfBr5ZqAmgOWIqAJaCn8WrkmoOaApQhoAloKv1auCag5YCkCmoCWwq+VawJqDliKgCagpfBr5ZqAmgOWIqAJaCn8WrkmoOaApQhoAloKv1auCag5YCkCmoCWwq+VawJqDliKgCagpfBr5ZqAmgOWIqAJaCn8WrkmoOaApQhoAloKv1auCag5YCkCmoCWwq+VawJqDliKgCagpfBr5ZqAmgOWIqAJaCn8WrkmoOaApQhoAloKv1auCag5YCkCmoCWwq+VawJqDliKgCagpfBr5ZqAmgOWIqAJaCn8WrkmoOaApQhoAloKv1auCag5YCkCmoCWwq+VawJqDliKwP8BB7C9AoX3qNAAAAAASUVORK5CYII=
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here