Computer Bugs Original Powerpoint By: Spring LIS4480 Coding Team Jon.

Slides:



Advertisements
Similar presentations
Microsoft® Small Basic
Advertisements

The Peanut Butter & Jelly Computer Instructor’s Handout (modified from zerorobotics and CS10K Community handouts) KEY CONCEPTS Software and hardware work.
Making a “P and J” sandwich
1 How to make a peanut butter and Jelly sandwich A Recipe From Cherie Lau.
How to Make a Peanut Butter and Jelly Sandwich By Kristy and Jon.
How to Make a Peanut Butter and Jelly Sandwich
How to Make a Peanut Butter and Jelly Sandwich Presented by: Lizzy Trillo Project 5: How to Make a PB & J Sandwich 5/3/11.
Hamilton County Developmental Disabilities Services
FACTORS, MULTIPLES & PRIME NUMBERS GCF & LCM. WHAT’S A FACTOR? A number that can be divided evenly into another number. Students will often identify multiples.
COP1332 Introduction to Programming Using Visual Basic.NET A journey into thinking Professor Walton.
ABNIAC The following slide presentation is to acquaint the student with ABNIAC. The version used for presentation is the Java version, which can be found.
Welcome to Jeff’s baseball game! Here is how to play. You are asked a math question and you have to get it right or you will repeat the question until.
Python Magic Select a Lesson: Why Learn to Code? Basic Python Syntax
By Droids Robotics Good Coding Practices: Start with Pseudocode BEGINNER EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 4/1/
CIS101 Introduction to Computing Week 12 Spring 2004.
1 st Grade Mathematics Students will have a basic understanding of adding numbers. Students will have basic word problem skills. Students will know basic.
Bug Session Three. Session description In this session, pupils will discover how the Bug software makes drawing shapes easier (this is based on the use.
By: Rachel Kenney. First Step Get a plate and bread out.
Step By Step By: Jade Gagne.  PB ‘n J is short form for Peanut Butter and Jam  PB ‘n J sandwich’s are delicious and easy to make lunch’s after a long.
Basic HTML Hyper text markup Language. Lesson Overview  In this lesson, you will learn to:  Create Lists  Horizontal rule (line)  Create a page for.
Scientific Method Notes. Scientific Method The way scientists learn and study about the world around them.
An Introduction to Textual Programming
How to make a Peanut Butter and Jelly Sandwich Katie Kurylo Subject: Home Economics Grade Level: 1st – 3rd.
How to make a Peanut Butter and Jelly Sandwich!
THE IB DESIGN CYCLE DESIGN IS THE WAY THINGS ARE MADE.
Introducing Scratch the Cat
 Make sure you are subscribed to announcements on Moodle.  Activity 4 will be due 48hrs after your lab ends.
Bug Session Four. Session description Objectives Session activities summary Resources Prior knowledge of sequencing instructions using Bug Bug website.
Bug Session Three. Session description In this session, pupils will discover how the Bug software makes drawing shapes easier (this is based on the use.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
CRE Programming Club - Class 4 Robert Eckstein and Robert Heard.
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
Scratch Programming Lesson 4 Question asking and answering.
Making Decisions uCode: October Review What are the differences between: o BlueJ o Java Computer objects represent some thing or idea in the real.
How to Read Code Benfeard Williams 6/11/2015 Susie’s lecture notes are in the presenter’s notes, below the slides Disclaimer: Susie may have made errors.
Piñata Game: Keeping Score in Alice By Maggie Bashford 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.
Daniel Gagnon’s Final Project Number Guessing Game Widget By: Daniel Gagnon.
How to Make a Peanut Butter and Jelly Sandwich Presented by: Andrew Stockmoe Project 5: How to Make a PB & J Sandwich 5/3/12.
How to Make the Perfect PB&J By: Jade Edwards. Materials Needed: ➾ 2 slices of white bread ➾ 1 jar of peanut butter ➾ 1 jar of grape jelly ➾ 1 paper plate.
Designing While Loops CSIS 1595: Fundamentals of Programming and Problem Solving 1.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Presented by: Mr. Pugh’s Class 2011 Ingredients Peanut Butter Jelly Two Slices of Bread.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University Sponsored by.
GCSE Computing: Programming GCSE Programming Remembering Python.
Intro to Turtle Graphics (Part 2)
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
Conditionals.
Hackety Hack! Written by Krystal Salerno Presented by _______________.
“How To” Projects Miss Polito Second Grade Bradford Heights Elementary.
Informational Writing (Procedural) ELACC5W2: Write informative/explanatory texts to examine a topic and convey ideas and information clearly. EQ: How can.
Let’s see what we can draw on Python!
Principles of Programming I (CIE 105)
Hackety Hack! [Krystal Salerno].
BEGINNER PROGRAMMING LESSON
The procedure.
Higher Computing Using Loops.
Introduction to TouchDevelop
BEGINNER PROGRAMMING LESSON
SCIENCE ON FRIDAYS.
Objective Given this activity, the students will be able to make the perfect peanut butter and jelly sandwich by following the steps in order.
BEGINNER PROGRAMMING LESSON
© LaunchPad Learning Inc. All rights reserved.
Sequence of Events.
Developing A Good Procedure
3/23: Limiting Reactant DO NOW
Iteration – While Loops
Presentation transcript:

Computer Bugs Original Powerpoint By: Spring LIS4480 Coding Team Jon

Why Coding?

PB&J Programming

Instructions Work with your group Write instructions for how to make a peanut-butter and jelly sandwich

PB&J Program 1.Take a slice of bread 2.If the jar is not open, Open the jar of peanut butter by twisting the lid counter clockwise 3.Pick up a knife by the handle 4.Insert the knife into the jar of peanut butter 5.Withdraw the knife from the jar of peanut butter and run it across the slice of bread 6.Take a second slice of bread 7.Repeat steps 2-5 with the second slice of bread and the jar of jelly 8.Press the two slices of bread together such that the peanut butter and jelly meet

Download Hackety! Michael

alert “Hello world!” What happens if we type this and hit run?

alert Displays a window “Hello world!” Is a string Think of it as a “string” of letters

name = ask “What is your name?” alert “Hello “ + name What is different?

name Variable Or nickname ask Displays a window with a text box

write a program that tells a joke

PB&J 1.Take a slice of bread 2.If the jar is not open, Open the jar of peanut butter by twisting the lid counter clockwise 3.Pick up a knife by the handle 4.Insert the knife into the jar of peanut butter 5.Withdraw the knife from the jar of peanut butter and run it across the slice of bread 6.Take a second slice of bread 7.Repeat steps 2-5 with the second slice of bread and the jar of jelly 8.Press the two slices of bread together such that the peanut butter and jelly meet

answer = ask “Is the jar open?” if answer == “No” alert “Open the jar.“ end Try answering with “No” and “no”. What is different?

answer = ask “Is the jar open?” if answer == “No” alert “Open the jar.“ end We’re asking if answer is equal to “No”.

answer = ask “Is the jar open?” if answer == “No” alert “Open the jar.“ end We’re asking if answer is equal to “No”.

answer = ask “Is the jar open?” if answer == “No” alert “Open the jar.“ else alert “Do not open the jar.“ end We can also tell the computer to do something else.

answer = ask “Is the jar open?” if answer == “No” alert “Open the jar.“ else alert “Do not open the jar.“ end Try answering with “Yes” and “No”. What is different?

Write a guessing game Aaron

secret = 42.to_s guess = ask “What is the secret?” Complete the program.

secret = 42.to_s guess = ask “What is the secret?” if guess == secret alert “Correct!“ else alert “Wrong!“ end Completed program.

alert 1 alert alert alert 8 / 2 alert 5 * 1 We can tell the computer to do math too

alert 1 alert 2 alert 3 Display the numbers 1, 2, 3

alert 1 alert 2 alert 3 alert 4 alert 5 alert 6 alert 7 alert 8 alert 9 What if we wanted to count higher?

alert 1 alert 2 alert 3 alert 4 alert 5 alert 6 alert 7 alert 8 alert 9 What if we wanted to count higher?

number = 1 9.times do alert number number = number + 1 end Does the same thing as before!

number = 1 9.times do alert number number = number + 1 end Make number = 1

number = 1 9.times do alert number number = number + 1 end do stuff until end 9 times

number = 1 9.times do alert number number = number + 1 end do stuff 9 times, end

number = 1 9.times do alert number number = number + 1 end Does the same thing as before!

secret = 42.to_s guess = ask “What is the secret?” if guess == secret alert “Correct!“ else alert “Wrong!“ end Can you change the code to ask “What is the secret?” 3 times?

secret = 42.to_s 3.times do guess = ask “What is the secret? You get 3 guesses!” end if guess == secret alert “Correct!“ else alert “Wrong!“ end Why does the program keep asking if we guess correctly?

secret = 42.to_s 3.times do guess = ask “What is the secret? You get 3 guesses!” if guess == secret break end if guess == secret alert “Correct!“ else alert “Wrong!“ end We need to tell the computer to break, or stop, if the guess is correct.

Let’s meet Turtle …not these turtles Michael

Turtle.start do end What happens if you run this program?

Turtle.start do forward 100 end We need to tell Turtle to do something.

Turtle.start do turnright 90 end What does turnright 90 do?

Turtle.start do forward 100 turnright 90 forward 100 end We can combine directions. Can you make Turtle draw a square?

Turtle.start do forward 100 turnright 90 forward 100 turnright 90 forward 100 turnright 90 forward 100 turnright 90 end

Turtle.start do 4.times do forward 100 turnright 90 end With a loop things get easier!

Can you make Turtle draw an octagon?

Turtle.start do 8.times do forward 100 turnright 45 end

Turtle.start do background darkred pencolor gold 8.times do forward 100 turnright 45 end We can change the color of the background and the pencolor.

Code this and customize it! Have fun and be creative! Harrison

Creative Contest Draw something using turtle. Don’t be afraid to ask for help! Skittles?

Conclusion We hope you enjoyed the lessons please let us know what you learned in the survey! If time is permitting let’s make something! P.S. We are getting graded on this