BIT116: Scripting Functions.

Slides:



Advertisements
Similar presentations
Driving Test 1 Marking Scheme Focus on five areas to pass driving test 1.
Advertisements

Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
Exercise Exercise3.1 8 Exercise3.1 9 Exercise
Exercise Exercise Exercise Exercise
Exercise Exercise Exercise Exercise
Exercise Exercise6.1 7 Exercise6.1 8 Exercise6.1 9.
Size Comparisons Using Percentages. One hundred percent of something is the ENTIRE THING. One hundred percent of 1 is 1. One hundred percent of 100 is.
Class template Describing a generic class Instantiating classes that are type- specific version of this generic class Also are called parameterized types.
General Computer Science for Engineers CISC 106 Lecture 25 Dr. John Cavazos Computer and Information Sciences 04/20/2009.
Wed/Fri Week 2 Functions! What are they? What do they look like in JavaScript? What are they good for? How do I use them? Some examples… Mini-Lab 1!!!
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 28P. 1Winter Quarter Inheritance and Overloading.
Surveys on Steroids New Uses for Kinetic Survey  10 years at Kinetic Data  Phone:  Derick Larson.
Computer Programming & Applications Mohamed Iqbal Pallipurath Lecture 02P. 1 Inheritance and Overloading Lecture 28.
Lecture # 13 JavaScript Functions: A Trip to the Grocery Store.
ProgLan Python Session 4. Functions are a convenient way to divide your code into useful blocks, allowing us to: order our code, make it more readable,
(a) EXERCISE SET 2 - Integration of Trig & Exponentials This is in the standard form e ax.
Implementation Basics in C# code Minimal C++ code Application logic in Java code.
Functions.  Assignment #2 is now due on Wednesday, Nov 25 th  (No Quiz)  Go over the midterm  Backtrack and re-cover the question about tracing the.
TLC Events Spring ‘16 1.Today: Formal Presentation Based SI Courses 2.March 8: Analyzing Difference 3.March 22: Discussion Based SI Courses 4.April 7:
AZ Food Handlers Card. Why do you need it? Jobs in food industry Shows that you already know food safety basics Industry certification.
Logical Operators.  Quiz  Let's look at the schedule  Logical Operators 2.
Lecture Exercise (Wk4) CS1301 Introduction To Computer Programming (11-12 Semester B) Page 1 Question 2 (a)Complete the code.
Today… Modularity, or Writing Functions. Winter 2016CISC101 - Prof. McLeod1.
Quiz 1 A sample quiz 1 is linked to the grading page on the course web site. Everything up to and including this Friday’s lecture except that conditionals.
Functions. 2 Modularity What is a function? A named block of code Sometimes called a ‘module’, ‘method’ or a ‘procedure’ Some examples that you know are:
BIT 116:JavaScript. BIT 116: Scripting2 Today Chapter 5: Repetition, Arrays Chapter 6: Functions –Ch 6 Reading quiz will be due NEXT lecture.
Today’s Agenda Review our Bellwork.... Any Announcements? Any Questions? Now... Let’s Begin Today’s Lesson…..
Logical Operators.  Quizzes!  Let's look at the schedule  Logical Operators 2.
BIT116: Scripting Lecture 05
Topic: Functions – Part 1
y – y1 = m (x – x1) Point-Slope Form
BIT116: Scripting Loops.
MATH VOCABULARY & GUIDED QUESTIONS DAY 29.
Randomising the behaviour of Sprites
BIT 116:JavaScript.
BIT116: Scripting Functions.
BIT 116:JavaScript.
Topic: Functions – Part 2
11/19/12 BR – List as many forms of government as you can
The UK Tier 1 Entrepreneur Visa and the UK Representative of Overseas Business Visa - SmartMove2UK
Make Your Own Quiz.
Tips Need to Consider When Organizing a College Event
Teaching London Computing
Getting Started With the JavaScript API
Introduction to Algorithms
CISC101 Reminders Assn 3 due Friday, this week. Quiz 3 next week.
ماجستير إدارة المعارض من بريطانيا
Putting the I in IoT.
The Asian Tsunami Today’s lesson will focus on the causes of tsunamis and in particular the Asian Tsunami of To begin, let’s examine how the tsunami.
10:00.
SOEN 343 Software Design Computer Science and Software Engineering Department Concordia University Fall 2004 Instructor: Patrice Chalin.
Function Overloading CSCE 121 J. Michael Moore
English 1 - September 16th Agenda Warm-Up: Dumbing Down
MIS JavaScript and API Workshop (Part 2)
Wednesday, 9/3 Form a hypothesis Test the hypothesis Ask a question
Programming Control Structures with JavaScript Part 2
Getting started with jQuery
D17 – Bellringer Think of some current events for which it is the opportune moment in the Rhetorical Situation right now. Write down at least two, and.
Introduction to Programming
Common Core Math I Unit 1, Day 1 One-Variable Statistics
Monitor Producer Consumer.
Process flow for rate limit
Introduction to Programming
Ch. 1 Vocabulary Alice.
2-2 Logic Part 2 Truth Tables.
Philosophy 1010 Class #10 Title: Introduction to Philosophy
def-ining a function A function as an execution control structure
Adult learning quiz.
Lecture 20 – Practice Exercises 4
Creating graphics for the world wide web
Presentation transcript:

BIT116: Scripting Functions

Today Quiz Function calls – collect, call, receive Function calls – accumulator practice

Basic Functions: Collect, Call, Receive The event handler will collect the data from the form The event handler will then call the function (passing in that data) The event handler will get the return value Let’s look at Collect_Call_Receive.html

Do Exercises Work on Exercises #1 and #2 for this part of this lecture

Defining a New Function (Collect, Call, Receive) Template: collect, call, receive Have event handler collect up data Pretend the function exists already and call it from the event handler Set up the function definition Focus on what parameters to include Put a comment above the function describing what it does, and what it returns Fill in the function’s logic Return the result from the function back to the event handler Receive the result in the event handler and do something with it.

Do Exercises Work on Exercise #3 for this part of this lecture