Week 3 DO NOW QUESTIONS.

Slides:



Advertisements
Similar presentations
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Advertisements

An Interactive Book About Math Vocabulary By Mrs. Emmer-Miller.
Shaded Area Find the area of the shaded region How do I find the shaded area? 1.Find the area of the large or whole object. 2.Find the area of the small.
Color (1) Turtle class contains a method to change the pen color Note: before using Color class, you should add following line in the top of the source.
Introduction to TouchDevelop
B.A. (Mahayana Studies) Introduction to Computer Science November March Logo (Part 1) An introduction to Logo: drawing, moving,
Areas How do you work out the area of this shape ? HINT.
2 D shapes only have two dimensions, such as width and length Some are: Polygons and Some are: Not Polygons.
You asked, I’ll tell!!!!!! Quadrilaterals in the Real World.
Binary Logic Lets think about the Binary!. What is Binary? Computers use binary as it’s a lot simpler! Each CPU is made up of millions of transistors.
Week 11 DO NOW QUESTIONS. An ask turtles block is a set of instructions that is issued to every turtle. Even though computers can do things very quickly,
LOGO SOFTWARE BY: SAVE 9S. INTRODUCTION Logo is a software that can be found at : Shared area> High School > ICT > take home software > LOGO32. This is.
Introducing Scratch the Cat
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
Agent P, I have been hearing some rumours about a Python Turtle.
Introduction to TouchDevelop
Week 9 DO NOW QUESTIONS. Question: If the following procedure is executed after 1 turtle is created in the program, what shape is created on the NetLogo.
Logo For beginners By Dali Matthews 9S What is logo?
Logo Programming Fall 2011 – Session 4 Programming Class Teacher: M. Taghizadeh Sobhan Highschool.
Is this a square or a pentagon? It is a square.
CONTROL SYSTEMS Control Systems A command is a directive that performs a specific task An argument is a variable that can be used by the function reveiving.
Week 2 DO NOW QUESTIONS. In this procedure the programmer intended to clear all the turtles and patches and make a new turtle of size 3 with the pen down,
Programmming Class Fall 2011 – Session 2 Teacher: M.Taghizadeh
Algorithms Writing instructions in the order they should execute.
CONTROL FLOW The order in which blocks are executed is called the “control flow” of the script So far all our scripts have just executed blocks in the.
Miss. Ajsa’s Geometry shapes practice Click the arrow button to begin.
By Liam Lane How To Use MSW LOGO.
= 5 = 2 = 4 = 3 How could I make 13 from these shapes? How could I make 19 from these shapes? STARTER.
Week 4 DO NOW QUESTIONS. Question: Predict a turtle’s heading after this procedure is run once. to go ask turtles [ forward 1 set heading random 45 right.
Getting started with the turtle Find the latest version of this document at
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
5. Loops 1 Let’s Learn Saenthong School, January – February 2016 Teacher: Aj. Andrew Davison, CoE, PSU Hat Yai Campus
Week 3 DO NOW QUESTIONS. In this setup procedure the programmer intended to create one turtle of each color: red, green, and blue. What went wrong? to.
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
What does this do? Pen up? Pen Down? Clear? Set Pen Color? Set Pen Shade? Stamp? 1.
SHAPES There are many shapes in our world. These are circles. Circles are never ending lines.
Geometry (Basic Shapes) Created by Ms. Creasy. Line A line goes on “forever” in both directions. It never stops. You know it is a line if it has an arrow.
Functions. functions: a collection of lines of code with a name that one can call. Functions can have inputs and outputs.
Search for it on your computer
LOGO WHAT IS IT? HOW TO USE IT AND HOW USEFUL CAN IT BE?
What is it? How to use it and how useful can it be?
Hackety Hack! Written by Krystal Salerno Presented by _______________.
Using the Python Turtle
Colors and Shapes By: Laura Buchanan.
Computer Programming.
LOGO BY Kaotip 9S.
Do Now.
What is a Polygon?.
5. Loops Let's Learn Python and Pygame
Name the shape below. rectangle rhombus square triangle A B C D
Agent P, I have been hearing some rumours about a Python Turtle.
Learning to program with Logo
Algorithms and Flow Charts
Follow Directions with Colors and Shapes
The RGB LED.
Fractions 1/2 1/8 1/3 6/8 3/4.
Basics of Classification

Chap. 3 Functions Start Python IDLE (Shell) and open a new file.
Looping Topic 4.
Here are four triangles. What do all of these triangles have in common
How Many Colorful Shapes?
Mod 2 Lesson 2 Repeating Debugging
Mod 2 Lesson 2 Repeating with loops
Introduction to Fractions
Mod 2 Lesson 2 Repeating with loops
Shapes.
Translate 5 squares left and 4 squares up.
Let’s Learn the Basic Colors
2 Making Blocks.
Presentation transcript:

Week 3 DO NOW QUESTIONS

create-turtles 1 [ set color [ 255 0 0 ] ] In this setup procedure the programmer intended to create one turtle of each color: red, green, and blue. What went wrong? to setup clear-all create-turtles 1 [ set color [ 255 0 0 ] ] create-turtles 2 [ set color [ 0 0 255 ] ] create-turtles 3 [ set color [ 0 255 0 ] ] end   color indexes should be used; too many turtles were created; the turtles are not red, green and blue; no errors are present

Given the binary number 1110, what is the result of shifting it 4 times? (Hint: each shift move the binary number over one position to the left so with one shift 1110 becomes 11100.) The result is equal to 4 X 1110 = 4440; The result is equal to 11,100,000; The result is equal to 14 X 4 = 56; The result is equal to 14 X 16 = 224

In RGB colors, three bytes are used to represent the amount of each base color (R, G, B) goes into making the new color. How many possible unique colors are there using this color scheme?   More than 16 million unique colors; 24 unique colors; 8 X 8 X 8 = 512 unique colors; 24 X 24 X 24 unique colors

ask turtles ask turtles [ [ forward 26 forward 40 right 155 right 175 What happens when two infinite go procedures (forever buttons) are executed at the same time after one turtle is created in a setup procedure?   to go1 to go2 ask turtles ask turtles [ [ forward 26 forward 40 right 155 right 175 ] ] end end    One turtle executes the go1 procedure and one turtle executes the go2 procedure; One turtle executes only the go1 procedure; The go procedures cancel each other out; The turtle executes each go procedure one at a time.

Which of the following shapes does the following looping procedure make? to draw-it pen-down let myCount 20 while (myCount > 0) [ forward myCount right 90 set myCount myCount – 2 ] end   a 10 sided polygon; a pentagon; a square spiral; a zigzagging line.

while [ myCount > 0 ] [ forward myCount left 60 ] In this procedure the programmer wanted the turtle to draw a tight spiral. What went wrong?   to draw-it pen-down let myCount 20 while [ myCount > 0 ] [ forward myCount left 60 ] set myCount myCount – 1 end   It drew a loose spiral; It drew a triangle then stopped; It ran on forever without spiraling; Nothing, it drew a tight spiral.

Change the inner “repeat 36” to a “repeat 35”; In this procedure the programmer wanted the turtle to draw a rosette made up of circles. Instead it made a column of circles. What should be changed to make the turtle draw a rosette? to draw-it pen-down repeat 36 [ repeat 36 [ forward 1 right 10 ] forward 1 ] end   Change the inner “repeat 36” to a “repeat 35”; Change the last “forward 1” to a “right 10”; Change the “right 10” to a “right 9”; Either a or b above.