Hackety Hack! Written by Krystal Salerno Presented by _______________.

Slides:



Advertisements
Similar presentations
First of all – lets look at the windows you are going to use. At the top you have a toolbar, with all your various tools you can use when customising your.
Advertisements

Getting Started With Alice: The Basics By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
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,
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
1 9/28/07CS150 Introduction to Computer Science 1 Loops section 5.2, 5.4, 5.7.
COMPUTER INSTRUCTOR J.H.S. GOT, MORADABAD How to Square A Number :- To square a number, just multiply it by itself...
METHODS!.  A method is a sequence of instructions or behaviors that will be carried out when requested.  You can use them to create new methods so that.
Introduction to TouchDevelop
 JavaScript is a programming language that web browsers understand. You can use it to make your web pages interactive by: Responding to user actions and.
Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008.
Python. What is Python? A programming language we can use to communicate with the computer and solve problems We give the computer instructions that it.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Welcome to the CRE Programming Club! Robert Eckstein and Robert Heard.
Making a Timer in Alice.
Computer Bugs Original Powerpoint By: Spring LIS4480 Coding Team Jon.
Karel J Robot An introduction to BlueJ and Object- Oriented Programming.
Making a Boat Racing Game in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2010.
Changing Camera Views! Part 2: Simple Scene Change & Lighting Fixes By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July.
Introducing Scratch the Cat
Getting started with Alice Adapted from presentations by Jenna Hayes, Duke University Donna Gavin, UWP Computer Science and Software Engineering.
Microsoft® Small Basic
Methods in Java CSC1401. Overview In this session, we are going to see how to create class-level methods in Java.
How to Make a PowerPoint Yes you can do it too! How to (legally) Download PowerPoint aspx?family=officehomestudent&culture=en.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 9 Basic Scripting.
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.
Introduction to TouchDevelop
Logo For beginners By Dali Matthews 9S What is logo?
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.
Welcome to the CRE Programming Club! Robert Eckstein and Robert Heard.
5 BASIC CONCEPTS OF ANY PROGRAMMING LANGUAGE Let’s get started …
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
1 What to do before class starts??? Download the sample database from the k: drive to the u: drive or to your flash drive. The database is named “FormBelmont.accdb”
Variables and Math in Code. Variables A variable is a storage block for information in your program “A” “A” Computer Program Memory Computer Program.
Learning the Language of Math ESOL. FRACTIONS Learning Outcome I can… * explain what is a fraction. * explain the difference between a whole number and.
Making a Timer in Alice By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
Loops & Graphics IP 10 Mr. Mellesmoen Recall Earlier we wrote a program listing numbers from 1 – 24 i=1 start: TextWindow.WriteLine(i) i=i+1 If.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
CRE Programming Club - Class 2 Robert Eckstein and Robert Heard.
Creating a 3D Interactive Story Prof. Susan Rodger Duke University July 19, 2007.
1 Building Your Own Turtle Functions For making really cool pictures!
Getting started with the turtle Find the latest version of this document at
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
CRE Programming Club Class 2 (Import JJZ543 and Practice Your Typing!)
GCSE Computing: Programming GCSE Programming Remembering Python.
Cracking the Code WHAT WORKS WHEN TEACHING STUDENTS TO CODE?
First of all – lets look at the window’s you are going to use. At the top you have a toolbar, with all your various tools you can use when customising.
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.
Functions. functions: a collection of lines of code with a name that one can call. Functions can have inputs and outputs.
Getting Started With Python Brendan Routledge
Introducing the turtle
Getting Started With Alice: The Basics. Step 1: Background Open up Alice, and choose a background for your Alice world. Your world is something you can.
Stage 3: Artist What do you remember from the last class?
More about comments Review Single Line Comments The # sign is for comments. A comment is a line of text that Python won’t try to run as code. Its just.
Whatcha doin'? Aims: To start using Python. To understand loops.
Week 3 DO NOW QUESTIONS.
A Tiny Look at the Graphics Window
Learning to program with Logo
Hackety Hack! [Krystal Salerno].
Frozen Graphics Lesson 3.
Computer Science and an introduction to Pascal
Introduction to Programming using Python
Introduction to TouchDevelop
A look at Python Programming Language 2018.
A few tricks to take you beyond the basics of Microsoft Office
A Tiny Look at the Graphics Window
Presentation transcript:

Hackety Hack! Written by Krystal Salerno Presented by _______________

What is Hackety Hack? Hackety Hack is a cool Ruby-based program that makes it really easy and fun to learn coding! You can get it at home and work on it too!

Let’s get started! 1.Click on Start 2.Click All Programs 3.Open Hackety Hack 4.Click on the Hackety Hack program If you can’t find it, let us know!

The basics We are going to make a simple program that just says hello! alert “Hello ambassador!” Click on Run in the bottom corner and watch!

What is a variable? Variables are things that we can change for the computer to read name = “Bob” alert “My name is ” + name Click Run!

Asking questions: We can have the computer ask us questions too! name = ask “What is your name?” alert “Your name is ” + name Click on Run!

Let’s draw! We can make the computer draw shapes with a few commands. Let’s use Turtle to draw a simple square.

Let’s draw! Turtle.start do forward 50 turnright 90 end Click Run and see what happens.

Let’s draw! So we only got a line, and a square has 4. How can we fix it? Let’s copy this 4 times forward 50 turnright 90

Let’s draw! Turtle.start do forward 50 turnright 90 forward 50 turnright 90 forward 50 turnright 90 forward 50 turnright 90 end

Let’s draw! This takes too long to do, especially with more sides, so we can tell the computer to repeat itself. When we do this we call it a loop. We can also change the colors of the background and the line Turtle makes!

Loopity Loop Turtle.start do background maroon pencolor honeydew 4.times do forward 50 turnright 90 end

Loopity Loop See how much nicer that makes it! Let’s play with the numbers we have after forward and turnright and see what happens.

Strings and Integers Who knows what the difference between “1000” and 1000 is?

Strings and Integers “1000” is a string (The quotes “” are the key) 1000 is an integer Strings are words or letters, must have quotes Integers are only whole numbers

Strings and Integers If we tried to do a math problem with this: “1000” + 1 = … The computer would give us an error, we tried adding the word “one thousand” and 1, it won’t work...

Strings and Integers If we want to change “1000” to 1000, then we need to use a special command. to_i and to_s will do the trick! “1000”.to_i = to_s = “1000”

Lets Try It! Clear your editor, and let’s ask a question sides = ask “How many sides?” Then let’s see how we can use this in the Turtle program!

Lets Try It! sides = ask “How many sides?” Turtle.start do sides.to_i.times do forward 50 turnright 40 end

Ask More Questions sides = ask “How many sides?” steps = ask “How much should we turn?” Turtle.start do sides.to_i.times do forward 50 turnright steps.to_i end

Ask More Questions sides = ask “How many sides?” Turtle.start do sides.to_i.times do forward 50 turnright 360/sides.to_i end

Calculators We can make small calculators with this too! number1 = ask “First number?” number2 = ask “Second number?” alert number1.to_i + number2.to_i

Follow us on Social Media! #FITC & visit FITC Group