Lesson 4.

Slides:



Advertisements
Similar presentations
Microsoft® Small Basic
Advertisements

101.  Take a look at this code and tell me what generation of programming language is used here. It is important that you can EXPLAIN how you came up.
Programming in python Lesson 2.
Introduction to Computers and Programming Class 6 Introduction to C Professor Avi Rosenfeld.
Chapter 9 Interactive Multimedia Authoring with Flash - Introduction to Programming “Computers and Creativity” Richard D. Webster, COSC 109 Instructor.
Algorithms In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the.
Python Programming Using Variables and input. Objectives We’re learning to make use of if statements to enable code to ask questions. Outcomes Build an.
By the end of this session you should be able to...
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
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.
1. Understand the application of Pseudo Code for programming purposes 2. Be able to write algorithms in Pseudo Code.
Mission Maker Games Unit Name: My Learning Journal.
Science: Learning about solids, liquids and gases.
Standards Based Education Parent Information Meeting February 2015.
CRE Programming Club - Class 3 Robert Eckstein and Robert Heard.
G043: Lecture 12 Basics of Software Development Mr C Johnston ICT Teacher
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
Algebra using brackets
Starter What does the following code do?
what is computer programming?
3.1 Fundamentals of algorithms
COMPUTATIONAL CONSTRUCTS
Continue Do Now on yesterdays sheet Do Now #2: Explain why scientists use the scientific method? Why do they repeat experiments?
IF statements.
Application of Pseudo Code
LO: To reflect on assessment results and areas for improvement
Lesson 3.
LO To assess my understanding of sequences
Starter Write a program that asks the user if it is raining today.
IPC144 Introduction to Programming Using C Week 2 – Lesson 1
AP English Language and Composition
To Assess my Understanding of Place Value 15-Nov-18
Warm up 4 minutes.
Do it now activity Since the beginning of the term you have planned a database based on your own scenario. Using your plan you are going to create a database,
Creating a Student Marksheet
LO To assess my understanding of inequalities RAG
Who can win more gold medals?
ALGORITHM BASICS- Part 3
Algorithms & Pseudocode
Lesson 1: Fundamentals of Programming
Programming in Pseudocode
An introduction to decomposition: Tut, clap or Jive
Escape sequences: Practice using the escape sequences on the code below to see what happens. Try this next code to help you understand the last two sequences.
RAG Starter Activity Complete the ‘Heard the Word Grid.’
RAG Starter Activity Complete the ‘Heard the Word Grid.’
What lessons can be learned
Warm up 2 minutes.
1) C program development 2) Selection structure
Understanding your Lesson Plan Template
RAG Starter Activity Complete the ‘Heard the Word Grid.’
RAG Starter Activity Complete the ‘Heard the Word Grid.’
Plenary
Creating a Student Marksheet
LO To assess my understanding of sequences
What does this show?.
Lesson Objectives By the end of the lesson you will:
Individual Learning Plan
Programming Techniques Assessment (Computer Science) Date :
Programming In.
Introduction to Python
Layers of the Rainforest
Science: Learning about solids, liquids and gases.
IPC144 Introduction to Programming Using C Week 2 – Lesson 2
Plenary
Plenary
Fractions & Percentages
Where are the Rainforests?
Plenary
Introduction to Computer Science
Presentation transcript:

Lesson 4

Assessment tracking sheet Bronze: Create a simple program that follows a clear set of instructions. (SA- self assessed) Silver: Use a text based programming language using sequence and selection. (Teacher Assessed in todays’ lesson) Declares and Assigns Variables. (PA- Peer Assessed) Gold: Annotates to demonstrate through understanding of code used (Teacher Assessed)

By the end of today’s lesson you will: LO1: Be able to define what a IF statement is and what it can be used for. LO2: Be able to apply an IF statement to a program in Small Basic.

What is an IF statement? Bill Gates explains IF statements: http://www.youtube.com/watch?v=m2Ux2PnJe6E

IF Else

Why? An IF statement lets you run a bit of code if you have met a rule If you haven’t met a rule, another bit of code can be run. Another example could be: If it is raining then open the umbrella Else keep the umbrella closed You would only do one of these actions

If Statements Then – If we pass the test, what do we do next If – This tells the computer we have a rule we want to test. Then – If we pass the test, what do we do next Else – If we fail the test, what should we do EndIf – Tells the computer, the If section is over

Using a program to determine if you passed or failed an exam. TextWindow.WriteLine ("Enter your exam result to see if you passed") score = TextWindow.Read() If score >=55 Then TextWindow.WriteLine ("congratulations you got over 55, you passed the exam") Else TextWindow.WriteLine (" You got less than 55, unfortunately you didn’t pass") EndIf RAG cards Change the program so that the pass rate is 60 or higher

Operators Operator Meaning Example = Equal to If number = 5 then <> Not equal to If number <> 8 then <  Less than If number < 4 then >  Greater than If number > 9 then <= Less than or equal to If number <=3 then >= Greater than or equal to If number >=7 then Operators

Plenary What is an IF statement? Give an Example of an IF statement in everyday life terms. What are the key terms for an IF statement?