 Make sure you are subscribed to announcements on Moodle.  Activity 5 will be due before the beginning of lab next week.  Check Moodle for complete.

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

1 Note: Original slides provided by and modified for this specific classwww.apComputerScience.com.
{ Technical Drawing 2 1 st ANGLE AND 3 rd ANGLE PROJECTIONS.
“The Handshake Problem” Problem Solving Ch 1. Shake Hands with Everyone Some things to think about: How many handshakes occurred? How did you keep track.
Loops (Part 1) Computer Science Erwin High School Fall 2014.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
1 An intro to programming concepts with Scratch Session 1 of 10 sessions Looks and Motion.
CS39N The Beauty and Joy of Computing Lecture #11 Recursion III It has been a challenge to power electronic components implanted within a body.
1 Section 9.2 Tree Applications. 2 Binary Search Trees Goal is implementation of an efficient searching algorithm Binary Search Tree: –binary tree in.
CIS101 Introduction to Computing Week 12 Spring 2004.
7.5 Use Recursive Rules with Sequences and Functions
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
SE 313 – Computer Graphics Lecture 3: Analytical Geometry and Linear Algebra Lecturer: Gazihan Alankuş Please look at the last three slides for assignments.
CSC 386 – Computer Security Scott Heggen. Database Security How can we minimize the probability of success by attacks like the one shown in the comic?
CPSC 171 Introduction to Computer Science 3 Levels of Understanding Algorithms More Algorithm Discovery and Design.
Triangle Town Hi, I’m Elke. Pleased to be your guide through Triangle Town. Don’t ever worry about getting lost. I’ll stay with you the whole time.
Graphics and Procedures Programming Right from the Start with Visual Basic.NET 1/e 5.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
Faculty Webpage Design Minimum Requirements. Go to: then High Schoolhttp://gcsc.groupfusion.net/
Institute for Personal Robots in Education (IPRE)‏ CSC 170 Computing: Science and Creativity.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Week 9, Day One. Warm Up Response Simplifying Expressions Worksheet If at first you don’t succeed, try again. We will try again.
1 Moodle Login Professional Development Training.
Section 1 Introduction National 4/5 Scratch Course.
How to make tables in HTML By Daniel Arze. How do they do this?
EPS 109 Final Project: An Attempt at Fractal Plants Natalie Mezaki SWEET CHERRIES.
Vocabulary Assignment (HW & CW SECTION) Name _______________________ Directions-You are going to choose six vocabulary words. Choose the ones that will.
IDEA CREATION. What is an idea? Where do ideas comes from? From our mind – the brain creates Thought or concept Potentially or actually exists in the.
Games Design. A video game designer develops the layout, concept and game play of a video game. A game designer works for a developer (which may additionally.
Using the Pythagorean Theorem Sarah Katko ICL 7062.
Watercolor Blocking Project. This project is focusing on animals in Nature!!! 1. You will need to find a color picture of animals in nature using the.
Summer Computing Workshop. Session 3 Conditional Branching  Conditional branching is used to alter the normal flow of execution depending on the value.
Structured Programming (4 Credits)
1 Project designed and created by M. Shajith Kumar.
Week 61 Introduction to Programming Ms. Knudtzon C Period Tuesday October 12.
Experimenting with Grammars to Generate L-Systems October 29, 2007
A GRUESOME BUT TRUE STORY ABOUT BRAIN SCIENCE
U.S. History Group Project.  In the remaining weeks of school, you, the students, will be put in the position of teacher. You will be broken up into.
1 warm up Find the angle between the two vectors u =  1, 5  v =  4, -3 
Visual C++ Programming: Concepts and Projects Chapter 10A: Recursion (Concepts)
Functions. functions: a collection of lines of code with a name that one can call. Functions can have inputs and outputs.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Drawing in Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Quiz: Draw the unit circle: Include: (1)All “nice” angles in degrees (2) All “nice” angles in radians (3) The (x, y) pairs for each point on the unit circle.
11.5 Recursive Rules for Sequences p What is a recursive rule for sequences? What does ! mean in math?
Experimenting with Grammars to Generate L-Systems – in JFLAP March 31, 2011 Prof. Susan Rodger Computer Science Dept.
PROCEDURES IN SCRATCH Message Broadcasting and Receiving.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 10A Recursion (Concepts)
Functions. functions – learning targets I will be able to understand how to trace function I will be able to learn how to lavage inputs and outputs with.
Using Logo to explore spiral patterns. Paul Broadbent Spiral patterns This is a (1,2,3) spiral path. It repeats lines of three.
Module 1: Investigation 1 Moving, Turning and Stamping
With and The Sims are a registered trademark of Electronic Arts, Inc
LOGO 32 By: Xenon 9S.
Module 2: Investigation 1
Karel J Robot.
Bell Ringer I will not answer questions about the Bell Ringer. Write each ratio as a fraction in simplest form pencils to 12 pens rooms to.
PROBLEM SOLVING CSC 111.
Lesson 3.2 Review: Identifying concepts
Peace Poster Contest.
Recursion Think ESCHER.
Lab Safety Insert Your Name Here.
Using a Drawing Robot to Make Angles (Using Rotations)
Algebra Concepts Section 4.2 Exponents.
Bell Ringer I will not answer questions about the Bell Ringer. Write each ratio as a fraction in simplest form pencils to 12 pens rooms to.
Open the program Paint on your computer
United States Government Brochure
Prof. Susan Rodger Computer Science Dept
Lab safety Insert your name here.
Lab Safety Insert Your Name Here.
Presentation transcript:

 Make sure you are subscribed to announcements on Moodle.  Activity 5 will be due before the beginning of lab next week.  Check Moodle for complete list of office hours

 SNAP! Projects › Before we end with Snap, there will be a group (2-3) project assigned in lab › Details to come…  Begin brainstorming about potential project ideas. ›  Game Section

 This activity addresses the concept of recursion and how it is used in computing. › The recursive process is one in which objects are defined by other objects of the same type › It is a function procedure that calls itself › Reduce a large problem into a series of similar, smaller problems

 Factorials › 5! Or 5 factorial is an example of a recursion process › n! = n * (n-1)! › So, 5! = 5 * 4! …. 5! = 120  4! = 4 * 3!  3! = 3 * 2!  2! = 2 * 1!  1! = 1  Create a block called “Factorial _”

 The goal of this project is to create a tree using concepts of recursion › We will have a TREE block that will first draw the trunk, and then will TURN left and continue drawing

 Step 1: Create a 1 st level block  Step 2: Create a 2 nd level block  Step 3: Create a 3 rd level block  Step 4: Create a recursive block  Step 5: Be creative!

 After positioning our sprite to create the tree we will need to include some basic blocks.  Now, we can create the first TREE block, this will draw a single branch. › This block needs to move the sprite back to it original position › Each block should allow for an input to be entered for tree size

 Create a block that draws two levels › This block should draw two branches that have a set degree between them › Make sure that you can mentally trace the code  Pay close attention to the forwards and turns  How could we simplify this code? What blocks would we use?

 Now, using your knowledge of recursion create a block for the third level, this block should use a previous block. › Practice using different size inputs at this level › Be able to mentally trace your code

 Now, create a TREE block that uses itself in its own script › provided that it knows how many levels it’s expected to draw!  So, in addition to the size input, it’ll have a LEVELS input › In the earlier steps, TREE3 used TREE2; TREE2 used TREE1. › Here, TREE will use TREE, but reduce levels by one › Hint: Look at the program for our # FACTORIAL!

 Once you can draw a tree of five or six levels using your TREE block, see if you make one like the first picture. › Smaller trees are away from the trunk, and the pen color changes  Also, try changing your tree in the following way › Change the turn angle › Change the scale factor › Change the number of recursion