PPT-Functions and Subroutines

Author : liane-varnes | Published Date : 2017-09-05

Functions amp Subroutines procedures in other languages are subprograms that allow modular coding Function returns a single explicit function value for given

Presentation Embed Code

Download Presentation

Download Presentation The PPT/PDF document "Functions and Subroutines" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Functions and Subroutines: Transcript


Functions amp Subroutines procedures in other languages are subprograms that allow modular coding Function returns a single explicit function value for given function arguments Subroutine. org Objectives Introduce subrou tines subroutine nesting pro cessor stack and passing the parameters to subroutines 1 Subroutines In a given program it is often needed to perfor m a particular subtask many times on different data values Such a subtas reasons for subroutines. repeat . same code, or similar code with slightly different parameters. hide . design decisions or design complexity. partition . off code likely to change. provide . for separate compilation. Style: Main program and subroutines. INF 123 – Software architecture. tdebeauv@uci.edu. 1. Outline. Some theory. Connector 1: Procedure . call . Style: Main program and subroutines. Connector 2: Socket. Subroutines . and Stacks. 1. Subroutines. Separate, independent module of program, performs a specific task. shortens code, provide reusable “tools”. High-level languages typically have libraries of subroutines.. Answer. 1. What does a connector do?. 2. Can connectors be smart? complex? domain-specific?. 3. Name 2 connectors. 4. Can subroutines have side-effects? Can they call each other?. 5. def. . concat. (. include a new diagnostics. Summary. Step 1: name and create the new diagnostics;. Step 2: modify run_diagnostics.ncl to load the new diagnostic;. Step 3: modify ILAMB_PARA_SETUP to show up the new diagnostic;. Call . suba. Call . suba. Call . suba. Next instruction. Next instruction. Next instruction. Start of subroutine. Subroutine . suba. Jump back. Only one copy of the code is placed in memory. Whenever we wish to use the code, a jump is made to it . uses . a language . to implement all of the functional capability of the application.. VBA . (Visual Basic for Applications. ). . is that language.. Use VBA to tell Excel what to do:. C. reate your own new functions. , . Sitichai. . Srioon. , Chaiporn Jaikaeo. Department of Computer Engineering. Kasetsart University. Cliparts. are taken from . http://openclipart.org. . 01204111 Computers and Programming. Revised 2018-08-21. Microcomputers I – CE 320. Electrical and Computer Engineering. Kettering University. jkwon@kettering.edu. http://www.kettering.edu/~jkwon. Jaerock Kwon, Ph.D.. Announcements. Midterm on Monday. Up to Lecture 13.. What is a piecewise function?. A piecewise function . (passes vertical line test) . is a function that is made up of different graphs for different intervals.. “Frankenstein Functions”. Students will be able to Identify and Graph piecewise functions (including absolute value) as evidenced by a math journal.. Branches . and Subroutines. Estimated . time . to . complete this lesson: 1 hour. In this lesson, you will . learn . how to:. Code Branches . and Subroutines. . Create subroutines by . using . Sub. and . Within contemporary organizations, reframing an EEO office and its functions within the Office of Human Resources and Strategic Talent Management (HRSTM). Employee & Labor Relations portfolio creates a paradigm shift. Such a shift interdependently aligns and couples the functions and offers an efficient Christoffer H. Grindheim. 1. Content. Current code. New code. Design objectives. 2. Current Code. Nrstuff. Numeric functions and subroutines. Long_v2. Functions and subroutines for time space, and conversion to phase space .

Download Document

Here is the link to download the presentation.
"Functions and Subroutines"The content belongs to its owner. You may download and print it for personal use, without modification, and keep all copyright notices. By downloading, you agree to these terms.

Related Documents