Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unit 3: Lesson 6 & 7- Functions and Top-Down Design / APIs and Function Parameters Day 27.

Similar presentations


Presentation on theme: "Unit 3: Lesson 6 & 7- Functions and Top-Down Design / APIs and Function Parameters Day 27."— Presentation transcript:

1 Unit 3: Lesson 6 & 7- Functions and Top-Down Design / APIs and Function Parameters
Day 27

2 Quiz on Socks Article/Video
Review / Quiz Quiz on Socks Article/Video Review Functions Journal Check

3 Lesson 6- Functions and Top-Down Design
Abstraction: Pulling out specific differences to make one solution work for multiple problems. Function: A piece of code that you can easily call over and over again.

4 Lesson 6- Functions and Top-Down Design
Top-Down design is a problem solving strategy in which you break down a large problem by naming its sub-tasks Then breaking down the sub-tasks further and so on until you're down to primitive operations.

5 Lesson 6- Functions and Top-Down Design
Large problems can be "abstracted" into sub-problems. Sometimes even the sub-problems can be abstracted into even more basic sub-sub-problems. This is referred to as "levels of abstraction."

6 Lesson 6- Functions and Top-Down Design
In programming, writing functions allows us to write code to solve these sub-problems and use them as building blocks toward a larger solution.

7 Lesson 6- Functions and Top-Down Design
There is not necessarily only one way to abstract a problem. Different approaches can be equally valid.

8 Lesson 6- Functions and Top-Down Design
With a Partner Top-Down Design Worksheet

9 Lesson 7- APIs and Function Parameters
An API (Application Programming Interface) is a collection of commands that can be used in a programming language to carry out a variety of processes These commands are the "interface" that the programmer will use to build applications in that language.

10 Lesson 7- APIs and Function Parameters
An API (Application Programming Interface) is a collection of commands that can be used in a programming language to carry out a variety of processes These commands are the "interface" that the programmer will use to build applications in that language.

11 Lesson 7- APIs and Function Parameters
Some functions have parameters which accept input as a way to better control, and generalize, the behavior of a function.

12 Lesson 7- APIs and Function Parameters
API - a collection of commands made available to a programmer Documentation - a description of the behavior of a command, function, library, API, etc.

13 Lesson 7- APIs and Function Parameters
Library - a collection of commands / functions, typically with a shared purpose Parameter - An extra piece of information that you pass to the function to customize it for a specific need.

14 Lesson 7- APIs and Function Parameters
Complete Lesson 7

15 Review Journal Vocabulary Racial and Gender Gaps


Download ppt "Unit 3: Lesson 6 & 7- Functions and Top-Down Design / APIs and Function Parameters Day 27."

Similar presentations


Ads by Google