Search Header Logo
FID WORK March 20th 2024- Preconditions and Postconditions

FID WORK March 20th 2024- Preconditions and Postconditions

Assessment

Presentation

•

Computers

•

9th Grade

•

Practice Problem

•

Hard

Created by

Kabir Singh

FREE Resource

7 Slides • 4 Questions

1

Preconditions and Postconditions lesson

2

Moment you've been waiting for

NO QUIZ TODAY!!!! QUIZ HAS BEEN SHIFTED FOR THURSDAY!!!!

You are welcome for the no quiz today. We do though have a lesson. Keep going for the lesson

3

Objectives/ Question of Day

Students will be able to:
  • Identify the preconditions and postconditions of an algorithm

  • Implement an algorithm to calculate the average of the values in a one-dimensional (1D) array

  • Implement an algorithm to calculate the sum of the values in a one-dimensional (1D) array

    Investigation Question: How can I perform calculations on the values stored in a 1D array?

4

Level 1

Please complete level 1, reading file. In your notes, label 3.5 and write what you notice/ wonder about the code

5

Open Ended

What do you notice in the program?

6

Open Ended

What do you wonder?

7

Vocabulary- goes in your notes

  • postcondition - a condition that must always be true just after the execution of a code segment

  • precondition - a condition that must always be true just before the execution of a code segment

  • text file - a file that contains letters, numbers, and/or symbols but has no special formatting

8

Open Ended

When have you had to use a precondition or postcondition?

9

Task

Activity guide+ code.org

  1. Please complete levels 2-5 on code.org

  2. As you go on, complete the Pre- Conditions and Post- conditions activity guide

  3. I have copied/ pasted the name, it is there

  4. When you are done, please continue

10

Open Ended

  • What was awesome about writing your code?

  • What is one action you can take to improve your code?

  • What questions do you have about today?

11

Ending/ HOMEWORK

That is it.
HOMEWORK:
Study for quiz tomorrow

pattern-tertiary

Preconditions and Postconditions lesson

Show answer

Auto Play

Slide 1 / 11

SLIDE