CRE Programming Club - Class 3 Robert Eckstein and Robert Heard.

Slides:



Advertisements
Similar presentations
Driving Test 1 Marking Scheme Focus on five areas to pass driving test 1.
Advertisements

Sunny’s First Day of School And A Hard Lesson Learned! Written and Illustrated by: Allison Griffies Narrated by: Marie Griffies.
A collection of short poems
Events Part III The event object. Learning Objectives By the end of this lecture, you should be able to: – Learn to use the hover() function – Work with.
Taking A Math Test.
Student PowerPoints For IEPs
Going Places Safely Essential Question:
Why me? By: Daniela Julca.
 When you are ready › The more comfortable you feel, the more likely it is they will feel uncomfortable.  Do not hurry to interact with the teacher.
Python Magic Select a Lesson: Why Learn to Code? Basic Python Syntax
Python November 18, Unit 7. So Far We can get user input We can create variables We can convert values from one type to another using functions We can.
Creating Functions Pepper. Homework Asking the user: –Drag variable to create a set statement –Drag a world function NumberDialog or StringDialog over.
Communication Effective Listening.
15 Simple Habits of The Happiest People.
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
Welcome to the CRE Programming Club! Robert Eckstein and Robert Heard.
CAREER ED PROJECT By Sarah Mayo Grade 11. WHO I INTERVIEWED  For this project, I interviewed my mom, Julia Mayo. She is a Library Technician at the Marjorie.
An Introduction to Textual Programming
In.  This presentation will only make sense if you view it in presentation mode (hit F5). If you don’t do that there will be multiple slides that are.
How conversation works Conversational English Compiled by Victor Nickolz Grand Lyceum 2004 For classes 7-11.
Partner Study Exciting Exponents!
CRE Programming Club - Class 7 Robert Eckstein and Robert Heard.
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #002 (January 17, 2015)
Parents Guide to Long Multiplication
Student Organization Leader Training: X-Pert Meeting By: Lizzy Wylly.
HELLO THERE !.... It's great to see you ! And by the way, did you know about the previous expression ?
Instructor: Chris Trenkov Hands-on Course Python for Absolute Beginners (Spring 2015) Class #005 (April somthin, 2015)
Collecting Things Together - Lists 1. We’ve seen that Python can store things in memory and retrieve, using names. Sometime we want to store a bunch of.
Welcome to the CRE Programming Club! Robert Eckstein and Robert Heard.
How to Write and Give A Speech. Organization:How should a speech be structured? Introduction - get their attention and state your main idea/message Introduction.
CRE Programming Club - Class 4 Robert Eckstein and Robert Heard.
The Sixth Period Reading & Listening. Questionnaire (3m) Step 1: In your group, think of four situations among friends. Design four questions accordingly.
Rhetorical Framework Purpose Audience Situation Persona/Ethos Message.
Lesson 4 Using Variables in Python – Creating a Simple ChatBot Program.
C++ Basics C++ is a high-level, general purpose, object-oriented programming language.
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.
PROGRAMMING In. Objectives  We’re learning to develop basic code with the use of the correct syntax and variables. Outcomes  Explain what syntax is.
Kelly The Red Haired Girl
Lesson 19 – Problem Solving Skill 3: Set a Goal and Gather Information.
By: Brandie Rice. Molly’s First Day Written by: Brandie Rice Mom: Molly, hurry up! You don’t want to miss the bus on your very first day! Molly: Oh! I’m.
Teaching to the Big Ideas K - 3. Getting to 20 You are on a number line. You can jump however you want as long as you always take the same size jump.
CRE Programming Club Class 3 (Install Small Basic on the new computers! Double-click on I:/smallbasic.msi)
An Epic Love Story This story follows two people who wouldn’t have found each other if it were not for fate. Christopher Macintosh is a young man strait.
CRE Programming Club - Class 2 Robert Eckstein and Robert Heard.
Every Monday Matters. Lesson introduction 
5.04 Apply Decision Making Structures
Process Mapping Dr. Nishan Sharma University of Calgary, Canada October
Mrs. Jones told the boys and girls that they were going to learn how to subtract numbers today. Jane wasn’t happy because math was hard for her. She had.
CRE Programming Club Class 8 Robert Eckstein and Robert Heard.
CRE Programming Club - Class 5 Robert Eckstein and Robert Heard.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
31/01/ Selection If selection construct.
1 Tom’s diner ( Suzanne Vega). 2 A dinner is a type of restaurant in the United States of America. In the pictures, can you see anyone: - sitting at a.
CRE Programming Club - Class 4 Robert Eckstein and Robert Heard.
5.0 Unit Plan 5 th Grade Science/Reading Technology Creations Compacting Plans Integrated Matrix Unit Plan Ideas Tiered Assignments Classroom Management.
Body Idioms Do you know any English idioms connected with body?
CRE Programming Club Class 2 (Import JJZ543 and Practice Your Typing!)
Thursday, September 16, Announcements Movie night, Friday September 25, at 6:00 pm. Bring your family and friends. There will be vocabulary review.
Pupil Interviews. O We prepared written interviews made up of 13 questions. O We randomly selected 2 children from each class by their place on the register.
What does being a good friend mean to me?
One of the strongest rules in English
Dyamonde Daniel was a gem waiting to be discovered. Just ask her.
I Can Work in a Group! Read title and introduce lesson to students. Ask if they ever have to work in groups at school. Lead discussion about how they.
I Can Work in a Group! Read title and introduce lesson to students. Ask if they ever have to work in groups at school. Lead discussion about how they.
Writing Project By: Becca Wolfe.
Introduction to TouchDevelop
♥SLIDE #1 - INTRODUCTION:
Lesson 4.
1. Let’s Party!.
Presentation transcript:

CRE Programming Club - Class 3 Robert Eckstein and Robert Heard

A Simple Conversation Let’s have a simple conversation with four statements. “Good Morning.” “I like the wind.” “That’s nice.”

What Do I Mean? What do we mean by Good Morning? Do we mean, “I am having a good morning?” Or do we mean “I hope you have a good morning?” Or are we excited about the morning and we want to tell everyone about it: “GOOD MORNING!” Am I warning everyone about the “Good morning!” out there? Or do we just mean “Hello.”

What Do I Mean? How about: I like the wind (Are we talking about the wind outside, or the act of winding something like a string?) We know it’s the wind because it has a “the” before it, so it’s a noun. But a computer is not (initially) that smart. It has to be told about that rule of the language.

What Do I Mean? What if I say, “Oh, yeah! I love to go the store!” or (sarcastically) “Oh, yeah, I love to go to the store.” If I just type those words into a computer, it has no idea which one I mean. It’s the exact same words, but whether or not I really mean it depends on my tone of voice.

No Confusion! A computer language must have statements that have no confusion whatsoever. If I say A = 20, then I mean set A to 20. There’s no confusion about that at all. No, “Oh, please set A to 20” No, “If you feel like it, or whenever you get a chance.” When the computer reads the statement, it does what it says… no questions asked.

Computer Languages Follow Strict Grammars!

Let’s Learn About Objects In the world of programming, objects are very important. In fact, about 25 years ago, they changed programming forever. What’s an object? Well, its easier to explain what an object contains....

Properties What are properties? Properties are the variables or the constants that the object has.

Operations Operations are things that the object can do, usually with the help of the properties. You can tell an operation as it is always followed by parenthesis.

Events Events are things that happen outside our program that it may want to be aware of, such as the mouse moving or clicking, or a key being pressed on the keyboard. You may need to “handle” them.

What’s the Difference Between Operations and Events? Operations are something we make happen. Events are something that something else (outside the program) makes happen...and we want to know about it!

Let’s Take a Practical Example.... What are some properties of my daughter Lauren: Hair color Age She has two eyes

What Are Some Operations? Jump up and down the number of times of your age Brush your hair Tell us how many eyes you have

What Are Some Events? She got sick She got hurt on the playground A boy kissed Lauren (I really want to know this!) Remember that events are not operations! Operations are things that our program makes happen. Events happen outside the program, and the program needs to know about them.

Bookmark the Docs Look online at TextWindow documentation (Reference Documention on smallbasic.com) Also, did you notice that when you were typing in TextWindow, the Intellisense also tried to guess what you wanted. If you choose TextWindow, it will display all the properties, events, and operations that an object has. So, TextWindow has properties like “Title”. It has operations like “WriteText” and “Read”. It doesn’t have events.

Go to smallbasic.com and click on Reference Documentation...

Accessing Objects We get ahold of properties, events, and operations by writing the name of the object, followed by a dot, followed by the name of the property, event, or operation. So, for example. Math.PI (constant) TextWindow.Title = “My Program” (variable) TextWindow.writeLine(...) (operation) TextWindow.readLine() (operation) TextWindow.clear() (operation)

Operations With operations, we can give information to it by putting it inside parenthesis. In fact, if you look at the object documentation, many operations expect one or more things to be passed to it. On the first day, what did we pass into TextWindow.writeLine()?

Operations Some operations will also return something. We can get ahold of it by assigning the return value to a variable. It looks something like this: shapeName = GraphicsWindow.addEllipse(5,5) You can pass in a more than one thing to an operation, but operations in Small Basic will only return one thing.

Using the Small Basic Classes Many programs use some of the Math functions, as well as some of the Clock functions. Clock.getMonth() Clock.getDay() Clock.getCurrentTimeMillis() What is the last one good for? We can use it as sort of a stopwatch, to figure out how long something in our program is taking.

Experiment! Import SKT673 and have some fun with it! Use some of the classes you see in the documentation!

Our Programs Need to Make Decisions We need our programs to be able to make decisions. Let’s look at the following code: If (Clock.Day = 1) And (Clock.Month = 1) Then TextWindow.WriteLine("Happy New Year") EndIf What do you think this program does?

Next Time... Next time, we’re going to continue with the branching functionality that is available. Learn how to type! A good place to start is at It has ads, but you can skip creating an account (just close the window) and jump to the lessons.