Presentation is loading. Please wait.

Presentation is loading. Please wait.

Exploring Computer Science Lesson 4-10 – Part 1

Similar presentations


Presentation on theme: "Exploring Computer Science Lesson 4-10 – Part 1"— Presentation transcript:

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

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

3 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

4 Conditions…

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

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

7 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

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

9 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 slider. 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


Download ppt "Exploring Computer Science Lesson 4-10 – Part 1"

Similar presentations


Ads by Google