Computer Programming.

Slides:



Advertisements
Similar presentations
Section 1 Introduction National 4/5 VB Course. What you should know after this lesson What is a program Who writes programs Why is sequence important.
Advertisements

Procedures and Functions. What are they? They are both blocks of code that can be reused to perform specific task. However there is a difference: Function-
Computer Science 1000 LOGO I. LOGO a computer programming language, typically used for education an old language (1967) the basics are simple: move a.
Super Logo. Key Instructions Pendown penup Forward 50 ( this number can change) Right 90 ( this number can change as well) Now try and draw a Early finishers,
B.A. (Mahayana Studies) Introduction to Computer Science November March Logo (Part 1) An introduction to Logo: drawing, moving,
Classifying Polygons Objective; I can describe a polygon.
Introducing Scratch the Cat
TURTLE GRAPHICS IP MR. MELLESMOEN. LOGO IN THE 1970’S THERE WAS A SIMPLE BUT POWERFUL PROGRAMMING LANGUAGE CALLED LOGO THAT WAS USED BY A FEW.
MSW Logo By Awin 9s.
An introduction to Logo Mike Warriner Engineering Director, Google Note: This course is not an endorsement of Logo by Google. All views in this document.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Logo Programming Fall 2011 – Session 4 Programming Class Teacher: M. Taghizadeh Sobhan Highschool.
By. Circle Draw a circle in the box Tell about its attributes: sides, angles, whether or not it’s a polygon. Add any additional information you know about.
Section 1 Introduction National 4/5 Scratch Course.
This is taking too long! Lesson 2 – Subroutines and parameters with LOGO.
Conditional Loops CSIS 1595: Fundamentals of Programming and Problem Solving 1.
1 Managing diversity in introductory programming classes Using Logo as a diagnostic tool John Poulton North East Wales Institute.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
Learning to program a turtle to build different structures.
Computer Programming. Previous Experience 1.I have never seen a computer program 2.I have seen some code, but never written any 3.I have written some.
Logo for Beginners By Chris 9S.
LOGO For the beginner Made by Rio Narazaki. W HAT I S L OGO ? Logo is a computer programming language used in Education. Logo is very easy to use. The.
Cracking the Code WHAT WORKS WHEN TEACHING STUDENTS TO CODE?
Turtle Graphics Let’s see what we can draw on Python!
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.
LOGO WHAT IS IT? HOW TO USE IT AND HOW USEFUL CAN IT BE?
Lesson Technology Lab: Exterior Angles of a Polygon Obj: The student will be able to use a protractor to study the exterior angles of a polygon HWK: Vocab:
Using Logo to explore spiral patterns. Paul Broadbent Spiral patterns This is a (1,2,3) spiral path. It repeats lines of three.
Interior Angle Measure Lesson and Questions
7-7 Polygons Course 1 Warm Up Problem of the Day Lesson Presentation.
Broadcasting (Adding a new level)
AP Computer Science Principles
Do it now activity Last lesson we used Flowol to create a solution to a problem a computer could solve. Identify what each symbol does:
Here you can learn all about 2-D shapes
Lesson 1 An Introduction
Scratch: iteration / repetition / loops
UNIT 3 – LESSON 5 Creating Functions.
Control structures Chapter 3.
Learning to program with Logo
A PowerPoint Practice Game
Learning to Program in Python
Procedures.
Computer Programming.
Introduction to pseudocode
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Log onto a computer first then ….
UNIT 3 CHAPTER 1 LESSON 4 Using Simple Commands.
Computers & Programming Languages
Module 2 Lesson 3 Over and Over Again
Here you can learn all about 2-D shapes
Algorithms Take a look at the worksheet. What do we already know, and what will we have to learn in this term?
Task 1 Computer Programming LEVEL 6 PROGRAMMING:
Looping Topic 4.
Hour of Code.
Value to Make Ratios Equal
Early - I can develop a sequence of instructions and run them using programmable devices or equivalent Designs a simple sequence of instructions/algorithm.
Mod 2 Lesson 2 Repeating Debugging
Mod 2 Lesson 2 Repeating with loops
Creating Computer Programs
Unit 3 lesson 2-5 The Need For Algorithms- Creativity in Algorithms – Simple Commands - Functions Day 18.
Explain what touch develop is to your students:
Explain what touch develop is to your students:
1. Drag the shapes down to make 2 different patterns.
Module 2 Lesson 3 Over and Over Again
Mod 2 Lesson 2 Repeating with loops
Module 2 Lesson 3 Over and Over Again
Hour of Code Code.org/lightbot
Creating Computer Programs
Computer Programming Tutorial
Presentation transcript:

Computer Programming

Recap A computer program is a sequence of instructions in a limited language that when executed in the correct order accomplish a specific on a computer Concepts: Looping Code reuse Syntax This course is more about problem-solving, than computers You need to find your own level, and try to learn something new or practice something you’ve learned, every lesson Don't compare yourself with other students in the class!

Difficulties Last time we learnt how to use a sequence of instructions to get the turtle to do something like draw a square. What if you want to execute the same instructions over and over? What if you want to save your shapes so you can use them next time?

The REPEAT statement Syntax Challenge repeat N [commands] N is the number of times commands are the instructions to repeat Challenge Can you draw a square using the repeat statement? Can you draw a triangle using it? Other polygons?

Creating Procedures, Extending the Language Try telling Logo to draw a square by typing "square" in the command box

Creating Procedures, Extending the Language Click Edall Type the instructions File, Save and Exit

Creating Procedures, Extending the Language Now try again typing "square" in the command box

Recap So you can save a set of instructions Give them a name Use that name to run the instructions This is called creating a PROCEDURE (You will also see "function", "method", "subroutine")

Task Create your own procedures for drawing A triangle A pentagon A hexagon An X shape An asterisk A star

Procedures can call procedures Create more complex patterns by creating procedures that call the procedures you have already made

Parameter passing Create a procedure square10 that draws a square of side 10 Create square20, square30, …, square100 How do the procedures differ from each other? There is another way…

Important concepts Looping (repeat statement) Named procedures Parameter passing