Exploring Computer Science Lesson 4-10 – Part 1

Slides:



Advertisements
Similar presentations
Everyday Math Grade 4 – Lesson 3.10 Open Sentences
Advertisements

Lesson Objective: I can…
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.
Timers Exploring Computer Science Lesson Objectives The students will be able to: Create a timer.
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
Plotting Data Exploring Computer Science Lesson 5-7.
My Scratch Story Exploring Computer Science Lesson 4-7.
Solutions to Equations and Inequalities Lesson 7.01.
Exploring Computer Science 2/2/15 2/2No School 2/3Scratch creating a program- Name 2/4 Scratch creating a program Dialogue 2/5 Scratch creating a dialogue.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Scratch Programming Lesson 4 Question asking and answering.
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
Scratch Dialogues Exploring Computer Science – Lesson 4-3.
Science Fair Hypothesis 8 th Grade Science Brookville Intermediate School.
Lesson 1.4 Equations and Inequalities Goal: To learn how to solve equations and check solutions of equations and inequalities.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Scratch – Simple Programming
Scratch Lesson 1. Creating an account Open the internet browser : Safari or Internet Explorer Type in the URL scratch.mit.edu Using your school computer.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
Introduction to Programming with Scratch Exploring Computer Science – Lesson 4-1.
Randomness Exploring Computer Science Lesson 4-10 – Part 2.
Everyday Math Grade 4 – Lesson 3.10 Open Sentences Copyright © 2010 Kelly Mott.
Event Driven Programs Exploring Computer Science – Lesson 4-5.
Lego Mindstorm Robot Educator Tutorials
Madlib-Input, Strings, and Lists in Scratch
© A+ Computer Science -
Exploring Computer Science Lesson 4-7
Spanish Mad libs with Scratch
Exploring Computer Science – Lesson 4-5
Exploring Computer Science Lesson 4-13
Programming Final Project
Exploring Computer Science Lesson 4-14
Evaluating Algebraic Expressions
Exploring Computer Science Lesson 5-7
Scratch 2.0: Introduction
Name Project April 12,2016.
BBC Microbit.
BBC Microbit.
Exploring Computer Science Lesson 4-14
Getting Started with Scratch
Lego Mindstorm Robot Educator Tutorials
Lego Mindstorm Robot Educator Tutorials
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Solving Equations with Variables on Both Sides Day 2
And and or…and RANDOMNESS
Objective of the lesson
Equations and Inequalities
Moving Sprites in Scratch
Exploring Computer Science Lesson 4-13
Exploring Computer Science – Lesson 4-5
Exploring Computer Science – Lesson 4-3
Conditionals Exploring Computer Science Lesson 4-9.
Introduction To Robot Decision Making
Programming Final Project
Exploring Computer Science Lesson 4-7
Getting Started with Scratch
Exploring Computer Science Lesson 4-8
Code to Enhance Learning
Programming Concepts and Database
Exploring Computer Science Lesson 4-12
Relational Operators.
Getting Started with Scratch
Exploring Computer Science Lesson 4-10 – Part 2
Exploring Computer Science Lesson 4-14
Exploring Computer Science Lesson 4-13
Solving Equations with Variables on Both Sides Day 2
Exploring Computer Science Lesson 4-12
Exploring Computer Science Lesson 4-8
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

Exploring Computer Science Lesson 4-10 – Part 1 And and or Exploring Computer Science Lesson 4-10 – Part 1

Objectives The students will be able to: Use conditionals with And and Or to write a grade program. Objectives

Write down the questions. What’s the difference between AND and OR? Write down the questions. Answer with complete thoughts and sentences or you will not receive full credit on your journal Journal

Conditions…

In an AND condition both parts must be true for the statement to be true

In an OR condition the statement is true is either of the parts are true.

AND and OR Blocks in Scratch AND and OR blocks are in operations Each side of the operation must be a conditional expression AND and OR Blocks in Scratch

Let’s check out some code What do you think this code does? Let’s check out some code

Crazy High School Grade Program Your task is to make a Scratch program that will tell you the letter grade based on the percentage. 1. Create a variable grade. 2. Double click grade to display the scroll bar. 3. When the green flag is clicked, the program should look at the value of grade and the sprite should respond with a letter as follows: A: greater than 89 B: greater than 79 and less than 90 C: greater than 69 and less than 80 D: greater than 59 and less than 70 F: less than 60 Extra Credit - At Crazy High School, students only qualify for tutoring if they have a B OR a D. After it says the grade, make your program say “You qualify for tutoring” if the grade is a B or D. You must use a single “if” block to decide if tutoring is needed. Crazy High School Grade Program