Hackety Hack! [Krystal Salerno].

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

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.
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.
Computer Bugs Original Powerpoint By: Spring LIS4480 Coding Team Jon.
Karel J Robot An introduction to BlueJ and Object- Oriented Programming.
Introducing Scratch the Cat
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.
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.
5 BASIC CONCEPTS OF ANY PROGRAMMING LANGUAGE Let’s get started …
How to link the robot and the computer (Bluetooth) How to turn on and off How to connect the adaptor Fluke card connection Sec Getting Started How.
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.
ECS 15 Variables. Outline  Using IDLE  Building blocks of programs: Text Numbers Variables!  Writing a program  Running the program.
Sanjay Johal. Introduction(1.1) In this PowerPoint I will be explaining :  The purpose of the code for each of the two given programs, e.g. to carry.
Line Symmetry Year 4. A shape has line symmetry if… You can draw a line through it so that one part is exactly the same as the other part.
CRE Programming Club - Class 2 Robert Eckstein and Robert Heard.
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.
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.
Search for it on your computer
Introducing the turtle
Hackety Hack! Written by Krystal Salerno Presented by _______________.
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.
Getting Started With Alice: The Basics
Computer Programming.
Whatcha doin'? Aims: To start using Python. To understand loops.
Broadcasting (Adding a new level)
A Simple Quiz for Alice 3.2:
Week 3 DO NOW QUESTIONS.
Formatting Output.
Microsoft® Small Basic
Evgeniya Gushchina EPAM e-kids volunteer computer science teacher
A Tiny Look at the Graphics Window
Learning to program with Logo
Frozen Graphics Lesson 3.
Computer Science and an introduction to Pascal
A Simple Quiz for Alice 3.2:
Introduction to Programming using Python
How To Help Myself When Playing With Friends
Introduction to TouchDevelop
Teaching Java using Turtles part 3
A look at Small basic The Text Window 2017.
Lecture 7: Introduction to Processing
A look at Python Programming Language 2018.
Python programming exercise
Introduction to Object-Oriented Programming in Alice
A few tricks to take you beyond the basics of Microsoft Office
Mod 2 Lesson 2 Repeating with loops
Using Logo and Logic This presentation uses a version of Logo called StarLogo available through MIT. It can be downloaded for free and installed on your.
A Tiny Look at the Graphics Window
Getting Started With Alice: The Basics
Mod 2 Lesson 2 Repeating with loops
Data Types Every variable has a given data type. The most common data types are: String - Text made up of numbers, letters and characters. Integer - Whole.
The arrows in the bottoms corners will take you forward and backwards through the slides, the home button will take you here, in case you want to start.
under the direction of Professor Susan Rodger
Restricting Events Creating Conditional Events in Alice By Henry Qin
Presentation transcript:

Hackety Hack! [Krystal Salerno]

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! www.hackety.com

Let’s get started! Click on Start Click All Programs Open Hackety Hack 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 Krystal!” 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 = “Krystal” 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

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

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 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 = 1000 1000.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! /FITCAlliance @FITCAlliance Follow us on Social Media! @FITC_Alliance #FITC & visit fitc.cci.fsu.edu FITC Group