Coding By: Katie XXXXXX. Agenda Programming Languages Hardware Coding Example 1: Hello World Coding Example 2: Fibonacci Sequence Coding Example 3: Balloon.

Slides:



Advertisements
Similar presentations
SCRATCH Lesson Two – Interactive Concepts Using Sensing, Operators, and Variables.
Advertisements

EasyGUI “Probably the Easiest GUI in the world”. Assumptions (Teachers’ Notes) This resources sets out an introduction to using easyGUI and Python
ECS 15 if and random. Topic  Testing user input using if statements  Truth and falsehood in Python  Getting random numbers.
Variables Conditionals Loops The concept of Iteration Two types of loops: While For When do we use them? Iteration in the context of computer graphics.
Bowen Yu Programming Practice Midterm, 7/30/2013.
Scratch Game Medieval Math Group 2 Merbach, Weston Phillips, Gregory Willamson, Matthew Vest, Dustin Daspit, Anthony.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
CS31: Introduction to Computer Science I Discussion 1A 4/2/2010 Sungwon Yang
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
IoT Hydroponics Project
SM3121 Software Technology Mark Green School of Creative Media.
Create Your Own Personalized Augmented Reality Content: It's Easier than You Think! By Courtney Pepe.
Python Control of Flow.
Anya Brookman. How to create a new message Unwanted messages Folders Messages you have sent to someone Logging out when you have finished sending.
Every week: Sign in at the door If you are new: Fill in Registration Form Ask a Mentor how to get started Make sure you are on the Athenry Parents/Kids.
index.php Palmyra Area High School 1.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
Lab 8 – C# Programming Adding two numbers CSCI 6303 – Principles of I.T. Dr. Abraham Fall 2012.
1 Please switch off your mobile phones. 2 Prolog: The Initiation ET: Hey Alice! What is this on your desk? Alice: That’s a digital computer. ET: Digital.
Introduction CSE 1310 – Introduction to Computers and Programming
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #005 (April somthin, 2015)
An Introduction to Textual Programming
1 ITSK 2611 Welcome. 2 Operating System 3 What is an OS Resource Manager –Disk –Memory –CPU Device Manager –Printers –Video Card –Sound Card Utility.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 10 The Mathematics of Money 10.1Percentages 10.2Simple Interest.
Introduction to Scratch!
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Unit 1 – Improving Productivity Josh Sherriff Instructions ~ 100 words per box.
Game Design Teri Stebbins Scratch. Game Design-Scratch Pros  It Is easy to navigate save and make projects.  It Is easy to record sound.  You can get.
Instructor: Tina Tian. About me Office: RLC 203A Office Hours: Wednesday 1:30 - 4:30 PM or .
PYTHON. Python is a high-level, interpreted, interactive and object- oriented scripting language. Python was designed to be highly readable which uses.
Week 1 Introduction to Computer Science and Object-Oriented Programming COMP 111 George Basham.
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
An Overview of Programming in Python CSC 161: The Art of Programming Prof. Henry Kautz 9/9/2009 Slides stolen shamelessly from Dr. Mark Goadrich, Centenary.
Agenda Last class: Internet Literacy Lab Today: Internet Safety.
Programming Software from Carnegie Mellon Began at University of Virginia under the leadership of Dr. Randy Pausch (“The Last Lecture”)
By the end of this session you should be able to...
English tongue twisters If you understand, say "understand". If you don't understand, say "don't understand". but if you understand and say "don't understand".
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #005 (April somthin, 2015)
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 5: Software Design & Testing; Revision Session.
Screencasting with Camtasia Studio Festival of Learning October 8, 2012 LGSUHSD Debra Troxell
Python – May 11 Briefing Course overview Introduction to the language Lab.
Intermediate 2 Software Development Process. Software You should already know that any computer system is made up of hardware and software. The term hardware.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 6, Lecture 1 (Monday)
1 C++ Programming Basics Chapter 1 Lecture CSIS 10A.
PROGRAMMING In Lesson 2. STARTER ACTIVITY Complete the starter activity in your python folder – lesson 2 Now we will see how you got on and update your.
In and Out are opposites. This is something to keep in mind when considering Input and Output. INPUT OUTPUT Ask: Does this device send information in?
My Python Programmes NAME:.
Networking Basics Objectives: 1. Utilize appropriate vocabulary to communicate effectively in a technological society. 6. Describe uses of a networked.
Introduction :  In the beginning, the calculator is the basic idea of computers out, then that arrived at the large computers.  in1980 or late seventies.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Creating a mystic meg program A simple program asking the user questions and using their answers to build up a fortune telling in a list.
CS 101 – Oct. 15 Common elements in solutions –Types of variables –Traversing values in a list –Assigning vs. checking if equal –Printing things on the.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Python 1 SIGCS 1 Intro to Python March 7, 2012 Presented by Pamela A Moore & Zenia C Bahorski 1.
EECS 473 Advanced Embedded Systems Posters. Posters for the Design Expo A few quick things: – If you have them sent to Yitian and me (as pdfs) by Tuesday.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #003 (February 14, 2015)
Raspberry Pi. Introduction The Raspberry Pi is a credit-card sized computer It can be plugged into your TV and a keyboard, and can be used for many of.
RaspberryPi.
A Playful Introduction to Programming by Jason R. Briggs
Analysis and Comparison is ICS4U
Building Raspberry Pi Controllers with Python
Programming 101 Programming for non-programmers.
Learning to Program in Python
Language Basics.
CS190/295 Programming in Python for Life Sciences: Lecture 6
What is a Raspberry Pi? The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard.
Reading / Writing analogue devices LED + Game-controller
Introduction to Python
Presentation transcript:

Coding By: Katie XXXXXX

Agenda Programming Languages Hardware Coding Example 1: Hello World Coding Example 2: Fibonacci Sequence Coding Example 3: Balloon POP! More Examples Resources

Programming Languages SCRATCH: A beginners language designed to make programming fun for small kids. PYTHON: A powerful, easy to learn, and widely used programming language. JAVA: A very popular programming language especially for web-based applications. C/C++/C#: A set of low level programming languages. Very powerful, extremely widely used, hard to learn. Dozens, if not hundreds, of more obscure programming languages.

Programming Language Selection For elementary school aged kids, SCRATCH is probably the best choice. PYTHON is generally considered the best learning language. It's powerful, quick to learn, and makes it easier to learn the other languages like JAVA and C later.

Hardware IPAD: iPads are made to be simple to use making it hard to program on them. PC/Laptops: Powerful platforms for coding. Expensive. Hard to interface with electronics. Raspberry Pi: A computing platform designed to get kids interested in programming, and to be about the cost of a school textbook.

Hardware: Raspberry PI The Raspberry Pi is a credit card sized computer, costing between $25 and $35 (depending on version). It was originally designed to get kids interested in coding. Over 5 million have been sold (mostly to non-kids to play with). It was originally designed to help kids learn PYTHON, but all of the languages named on the previous slides are supported.

HARDWARE: Eben Upton The idea for the Raspberry Pi came about because the Cambridge Computer Lab saw both a decline in the number of applicants for their C.S. Course, and a drop in the number that had programming experience. Eben Upton initially hoped to sell 20,000.

Coding Example 1: Hello World! A simple, one line program in Python, printing words to the screen: print ("Hello World!")

Coding Example 1a: Adding Variables Variables store data. This program asks the user their name, then says hello to them: name = input("What is your name? ") print ("Hello %s!" % name)

Coding Example 1b: IF statements IF statements let us look at variables and do different thing depending what is in them. Note, Alex is my brother and messes with my stuff: name = input("What is your name? ") if name.lower() == 'katie': print ('Katie is Awesome!') elif name.lower() == 'alex': print ('GO AWAY ALEX!!!') else: print ("Hello %s!" % name)

Coding Example 2: Fibonacci Sequence Amongst other things Fibonacci sequence can predict bunny populations. bunnies, baby_bunnies = (1,1) generations = int(input('How many generations do you want? ')) for x in range(1, generations+1): print ('Generation {} has {} baby bunnies'.format(x, baby_bunnies)) bunnies, baby_bunnies = (baby_bunnies, bunnies + baby_bunnies)

Coding Example 3: Balloon Pop! Using a pin to pop a balloon is cheating, and uses ancient technology import RPi.GPIO as GPIO from time import sleep GPIO.setup(26, GPIO.OUT) answer = input('Do you want to pop the balloon? ') if answer.lower() == 'yes': GPIO.output(26, True) sleep(10) GPIO.output(26, False) else: print ('Save the balloons!')

Balloon pop circuit diagram The transistor is being used as a switch. When the raspberry pi turns on pin 26 the transistor switches on. This allows a lot of current to flow through the resistor, which gets very hot and pops the balloon.

More Examples As Eben Upton says, the Raspberry Pi “puts a space program within the reach of every primary (elementary) school in the world” The following slides show some ways Raspberry Pi's have been used.

My 3D Printer l This was the 3-D printer that I made for my GT project and it is controlled by a raspberry pi that lets me upload files and control it from my iPad or other computers.

Pi's with Weather Balloons Raspberry pi's have been sent up to the edge of space in a weather balloon to take a picture of a potato in a space ship.

More about weather balloons o Weather balloons can be launched for around $400. o They typically go over 100,000 feet before popping. o Flight time is usually 2-3 hours. o Usually fly 50 miles or less. o Payload can be up to 12lbs.

Quad-copter Semi-autonomous quad-copter that you can program your own flight plan on.

Erica the Rhino Erica is powered by five raspberry pi's that allow the rhino to move it's ears, send out and read tweets, make rhino sounds, and even interact with nearby smartphones.

Minecraft Pi In Minecraft you can use python to create objects, build games, and even link it to a webcam to take real pictures to use in the game.

Other resources