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

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

Creating Computer Programs lesson 27. This lesson includes the following sections: What is a Computer Program? How Programs Solve Problems Two Approaches:
Python quick start guide
Monday, March 23 Today's Objectives
Invitation to Computer Science, Java Version, Second Edition.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
Monday, October 27th Math Homework Multiplication worksheet & study multiplication facts Students: HW ready to check.
HNDIT23082 Lecture 09:Software Testing. Validations and Verification Validation and verification ( V & V ) is the name given to the checking and analysis.
CMSC 104, Section 301, Fall Lecture 18, 11/11/02 Functions, Part 1 of 3 Topics Using Predefined Functions Programmer-Defined Functions Using Input.
Chapter 7: Designing solutions to problems OCR Computing for A Level © Hodder Education 2009.
JavaScript: API’s, Parameters and Creating Functions with Parameters
Advanced Higher Computing Science
Topic 2: Hardware and Software
AP CSP: Creating Functions & Top-Down Design
Visual Basic.NET Windows Programming
Learning outcomes 5 Developing Code – Using Flowcharts
7. Modular and structured design
Lesson 2 Flowcharting.
APIs and Function Parameters
Do it now activity Last lesson we used Flowol to create a solution to a problem a computer could solve. Identify what each symbol does:
Ruby Classes, Modules & Mixins
Notes Over 4.2 The Multiplication Property of Equality
Unit 3 Lesson 4 & 5- Programming With Simple Commands / Creating Functions Day 26.
Creating Functions with Parameters
Functions and Top-Down Design
Unit 3 lesson 2&3 The Need For Algorithms- Creativity in Algorithms
SYSTEM ANALYSIS AND DESIGN
UNIT 3 – LESSON 5 Creating Functions.
APIs and Function Parameters
Looping and Random Numbers
Lesson 1: Buttons and Events – 12/18
An Introduction to Visual Basic .NET and Program Design
Exceptions C++ Interlude 3
Computer Programming.
ALGORITHMS AND FLOWCHARTS
Graph Paper Programming
Error Analysis Session 3.
Lecture 09:Software Testing
Graph Paper Programming
Lesson 16: Functions with Return Values
LESSON 13 – INTRO TO ARRAYS
Lesson Objectives Aims You should be able to:
Lesson 5: Building an App: Clicker Game
Creating Functions with Parameters
Looping and Random Numbers
Chapter 4 Loops While loop The for loop do… while break and continue
ALGORITHMS AND FLOWCHARTS
Unit 3: Lesson 9-Looping and Random Numbers
Algorithm Discovery and Design
Math Talk: Mental computation
Programming Fundamentals
Solving Equations by Multiplying or Dividing 1-8
Strategies for Comparing Fractions
Use Strategies and Properties to Multiply by 1-Digit Numbers
Creating Computer Programs
Functions and Top-Down Design
Unit 3 lesson 2-5 The Need For Algorithms- Creativity in Algorithms – Simple Commands - Functions Day 18.
Lesson 8: Creating Functions with Parameters
Vocabulary Algorithm - A precise sequence of instructions for processes that can be executed by a computer Low level programming language: A programming.
All students can be involved as they do no need to find an answer only a question and you could expand this in a variety of different ways: Students could.
POWER CHALLENGES Several Ways To Solve 7 CHALLENGES.
Computational Thinking
Quiz: Computational Thinking
ENERGY 211 / CME 211 Lecture 27 November 21, 2008.
Creating Computer Programs
Learning Intention I will learn about the standard algorithm for input validation.
U3L8 Creating Functions with Parameters
Design Patterns
Introducing Modularity
Presentation transcript:

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

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

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.

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.

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."

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.

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

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

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.

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.

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.

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.

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.

Lesson 7- APIs and Function Parameters Complete Lesson 7

Review Journal Vocabulary Racial and Gender Gaps