Eastern Mediterranean University School of Computing and Technology Information Technology Lecture2 Functions

Size: px
Start display at page:

Download "Eastern Mediterranean University School of Computing and Technology Information Technology Lecture2 Functions"

Transcription

1 Eastern Mediterranean University Schl f Cmputing and Technlgy Infrmatin Technlgy Lecture2 Functins User Defined Functins Why d we need functins? T make yur prgram readable and rganized T reduce repeated cde Define a functins nce and re use everywhere yu want. This will save yu frm sme time. In ther wrds, a C prgram can be mdularized via the sensible use f prgrammer-defined functins. In general, mdular prgrams are far easier t write and debug than mnlithic prgrams. C als allws prgrammers t define their wn functins. The use f prgrammer-defined functins permits a large prgram t be brken dwn int a number f smaller, self-cntained units. Functins: A functin is a self-cntained prgram segment that carries ut sme specific, well-defined task. Every C prgram cnsists f ne r mre functins. One f these functins must be called main. Executin f the prgram always begins by carrying ut the instructins cntained in main. The same functin can be accessed frm several different places within a prgram. Once the functin has carried ut its intended actin, cntrl is returned t the pint frm which the functin was accessed. Functin prcesses infrmatin passed t it frm the calling prtin f the prgram, and returns a single value. This is the same definitin f functins in mathematics. (fr each x in X there exist y in Y such that f(x)= y ). A functin in C language is a blck f cde that perfrms a specific task. It has a name and it is reusable i.e. it can be executed frm as many different parts in a C prgram as required. It als, ptinally, returns a value t the calling prgram. Sme functins, hwever, accept infrmatin but d nt return anything. 1

2 S functin in a C prgram has sme prperties as discussed belw. Every functin has a unique name. This name is used: t be called frm main () functin. A functin can be called frm within anther functin. (Functin can call anther functin, r even can call itself (recursive). Remember that a C prgram must has at least ne functin called main (). A functin is independent and it can perfrm its task withut interventin frm r interfering with ther parts f the prgram. A functin perfrms a specific task. A task is a distinct jb that yur prgram must perfrm as a part f its verall peratin, such as adding tw r mre integer, srting an array int numerical rder, r calculating a cube rt etc. A functin returns a value t the calling prgram. This is ptinal and depends upn the task yur functin is ging t accmplish. Suppse yu want t just shw few lines thrugh functin, then it is nt necessary t return a value (as an example: a functin which prints string f characters nly as a heading). But if yu are calculating area f rectangle as an example, and wanted t use result smewhere in prgram, then yu have t send back (return) value t the calling functin. Nte that: Yu cannt imagine a C prgram withut functin. Structure f a Functin A general frm f a C functin lks like this: <return type> FunctinName (Argument1, Argument2, Argument3 ) Statement1; Statement2; Statement3; return value; return (value); r may be withut return statement (sme times) 2

3 User defined functins can be categrized as: Functin with n arguments and n return value Functin with n arguments and a return value Functin with arguments and n return value Functin with arguments and a return value When d we need functin prttype? Mst C prgrammers prefer t place the main() functin at the beginning f their prgrams. After all, main() is always the first part f a prgram t be executed. I recmmend yu t use this methd ( First place main functin then fllw all the functins after the main, and yu shuld apply the requirement as defined belw In such situatins, functin calls [within main()] are bund t precede the crrespnding functin definitins: frtunately, hwever, cmpilatin errrs can be avided by using a cnstruct knwn as a functin prttype. Functin prttypes are cnventinally placed at the beginning f a prgram (i.e., befre the main() functin) and are used t infrm the cmpiler f the name, data type, and number and data types f the arguments, f all userdefined functins emplyed in the prgram. The general frm f a functin prttype is data-type name(type 1, type 2,..., type n); ntice that semicln (;) must be cded as shwn abve in functin prttype where data-type represents the data type f the item returned by the referenced functin, name is the name f the functin, and type 1, type 2,..., type n are the data types f the arguments f the functin. Als, nte that it is nt necessary t specify the names f the arguments in a functin prttype. As an example: the functin prttype statement fr factrial functin can be written as: duble factrial ( int ); instead f duble factrial( int n); 3

4 Functins with n type. The use f vid What if we want t return n value? Imagine that we want t make a functin just t shw a message n the screen. We d nt need it t return any value. In this case we shuld use the vid type specifier fr the functin. This is a special specifier that indicates absence f type. vid printmessage;//func. prttype vid main () printmessage (); vid printmessage () printf("i'm a functin!"); The Arguments Argument1, Argument2, Argument3 are declared as: Type1 argument1, Type2 argument 2, Type 3 argument 3,..an s n. Example: int a, flat b, char d, int e; and s n. Ntice that cmma (,) must used t separate arguments and nt semicln (;). Functin Call: A functin can be accessed, r called, by specifying its name, fllwed by a list f arguments enclsed in parentheses and separated by cmmas. Nte that when yu call functin frm main then yu shuld nt include the type f the arguments. This mean that if yur functin declaratin is as fllws: int myfuncin(int A, flat B) then the call statement in main as fllws (as an example): 4

5 C= myfuncin(a,b); r as fllws: printf(" the value f C = %.3f\n", myfuncin(a,b)); If the functin call (call statement in main) des nt require any arguments then an empty pair f parentheses must fllw the name f the functin, as an example: func1 ( ). fr passing the value f an argument t a functin is called passing by value Example: int sum (int x, int y) int result; /* result is lcal variable */ result = x + y; return (result); /* r like: return result; */ In the abve: the returned value (result) is f type int, argument x is f type int, and argument y is f type int. Nte that: x and y are integer arguments t functin frm main ( r frm ther Functins). Als, the argument r variable (result) is called lcal variable. This mean that this variable is nly knwn with the functin (sum) defined abve. If main functin r any ther functin called by main has als anther variable with same name as result as an example, then they are ttally different and might have different values. vid main ( ) int x,y,v1; x=40;y=70; v1=sum(x,y); int sum(int k,int d) int R; R=k+d; return R; Value f R will be returned t main ( ) 5

6 Nte that the identifiers used t reference the arguments f a functin are lcal, in the sense that they are nt recgnized utside f the functin. Return statement: the bdy f the functins must include ne r mre return statements in rder t return a value t the calling prtin f the prgram. If the type f the functin is vid then functin has n return statement. A return statement causes the prgram lgic t return t the pint in the prgram frm which the functin was accessed. The general frm f a return statement is: return expressin; This statement causes the value f expressin t be returned t the calling part f the prgram. Of curse, the data type f expressin shuld match the declared data type f the functin. Fr a vid functin, which des nt return any value, the apprpriate return statement is simply: return; r even, dn t write the statement: return. A maximum f ne expressin can be included in a return statement. Thus, a functin can return a maximum f ne value t the calling part f the prgram. Hwever, a functin definitin can include multiple return statements, each cntaining a different expressin, which is cnditinally executed, depending n the prgram lgic. Example: int additin (int a, int b) int r; r=a+b; return (r); int main () int z; z = additin (5,3); printf("the result is %d \n",z); return 0; 6

7 1. Example prgram fr withut arguments & withut return value: In this prgram, n values are passed t the functin test and n values are returned frm this functin t main functin. vid test(); vid main() test(); vid test() int a = 50, b = 80; printf("\nvalues : \na = %d and b = %d\n\n", a, b); Output: values : a = 50 and b = Example prgram fr withut arguments & with return value: In this prgram, n arguments are passed t the functin sum. But, values are returned frm this functin t main functin. Values f the variable a and b are summed up in the functin sum and the sum f these value is returned t the main functin. int sum(); vid main() int additin; additin = sum(); printf("\nsum f tw given values = %d\n\n", additin); int sum() int a = 50, b = 80; return a+b; Output: Sum f tw given values = 130 7

8 3. Example prgram fr with arguments & with return value: The value f m is passed as argument t the functin square. This value is multiplied by itself in this functin and multiplied value p is returned t main functin frm functin square. flat square ( flat x ); vid main( ) flat m ; printf ( "\nenter sme number fr finding square : "); scanf ( "%f", &m ) ; printf ( "\nsquare f the given number %.2f is %.2f\n\n",m,square(m) ); flat square ( flat x ) return x*x ; Output: Enter sme number fr finding square : 2 Square f the given number 2.00 is Call by value: In call by value methd, the value f the variable is passed t the functin as parameter. The value f the actual parameter can nt be mdified by frmal parameter. Different Memry is allcated fr bth actual and frmal parameters. Because, value f actual parameter is cpied t frmal parameter. Nte: Actual parameter This is the argument which is used in functin call. Frmal parameter This is the argument which is used in functin definitin Example prgram fr C functin (using call by value): In this prgram, the values f the variables m and n are passed t the functin swap. These values are cpied t frmal parameters a and b in swap functin and used. vid swap(int a, int b); vid main() int m = 22, n = 44; printf("\nvalues befre swap m = %d nand n = %d\n", m, n); swap(m, n); vid swap(int a, int b) int tmp; tmp = a; 8

9 Output: a = b; b = tmp; printf("\nvalues after swap m = %d and n = %d\n\n", a, b); values befre swap m = 22 and n = 44 values after swap m = 44 and n = Call by reference: In call by reference methd, the address f the variable is passed t the functin as parameter. The value f the actual parameter can be mdified by frmal parameter. Same memry is used fr bth actual and frmal parameters since nly address is used by bth parameters. Example prgram fr C functin (using call by reference): In this prgram, the address f the variables m and n are passed t the functin swap. These values are nt cpied t frmal parameters a and b in swap functin. Because, they are just hlding the address f thse variables. This address is used t access and change the values f the variables. vid swap(int &a, int &b); vid main() int m = 22, n = 44; printf("\nvalues befre swap m = %d and n = %d\n",m,n); swap(m, n); printf("\nvalues after swap a = %d nand b = %d\n\n",m,n); vid swap(int &a, int &b) int tmp; tmp = a; a = b; b = tmp; Output: values befre swap m = 22 and n = 44 values after swap a = 44 and b = 22 9

10 Randm Functin Generate randm number. It returns an integer value in the range between 0 and RAND_MAX Syntax: rand()% ttal number in the range + first number Ex: a in the range 12 t 25 a = rand() % ( ) + 12 v1 = rand() % 100; // v1 in the range 0 t 99 v2 = rand() % ; // v2 in the range 1 t 100 v3 = rand() % ; // v3 in the range

CS1150 Principles of Computer Science Methods

CS1150 Principles of Computer Science Methods CS1150 Principles f Cmputer Science Methds Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang CS1150 UC. Clrad Springs Opening Prblem Find the sum f integers frm 1 t 10, frm 20

More information

Lab 4. Name: Checked: Objectives:

Lab 4. Name: Checked: Objectives: Lab 4 Name: Checked: Objectives: Learn hw t test cde snippets interactively. Learn abut the Java API Practice using Randm, Math, and String methds and assrted ther methds frm the Java API Part A. Use jgrasp

More information

Lab 1 - Calculator. K&R All of Chapter 1, 7.4, and Appendix B1.2

Lab 1 - Calculator. K&R All of Chapter 1, 7.4, and Appendix B1.2 UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING CMPE13/L: INTRODUCTION TO PROGRAMMING IN C SPRING 2012 Lab 1 - Calculatr Intrductin In this lab yu will be writing yur first

More information

LAB 7 (June 29/July 4) Structures, Stream I/O, Self-referential structures (Linked list) in C

LAB 7 (June 29/July 4) Structures, Stream I/O, Self-referential structures (Linked list) in C LAB 7 (June 29/July 4) Structures, Stream I/O, Self-referential structures (Linked list) in C Due: July 9 (Sun) 11:59 pm 1. Prblem A Subject: Structure declaratin, initializatin and assignment. Structure

More information

INSTALLING CCRQINVOICE

INSTALLING CCRQINVOICE INSTALLING CCRQINVOICE Thank yu fr selecting CCRQInvice. This dcument prvides a quick review f hw t install CCRQInvice. Detailed instructins can be fund in the prgram manual. While this may seem like a

More information

CS1150 Principles of Computer Science Introduction (Part II)

CS1150 Principles of Computer Science Introduction (Part II) Principles f Cmputer Science Intrductin (Part II) Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang UC. Clrad Springs Review Terminlgy Class } Every Java prgram must have at least

More information

Lab 1 - Calculator. K&R All of Chapter 1, 7.4, and Appendix B1.2 Iterative Code Design handout Style Guidelines handout

Lab 1 - Calculator. K&R All of Chapter 1, 7.4, and Appendix B1.2 Iterative Code Design handout Style Guidelines handout UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING CMPE13/L: INTRODUCTION TO PROGRAMMING IN C SPRING 2013 Lab 1 - Calculatr Intrductin Reading Cncepts In this lab yu will be

More information

CS1150 Principles of Computer Science Midterm Review

CS1150 Principles of Computer Science Midterm Review CS1150 Principles f Cmputer Science Midterm Review Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang CS1150 UC. Clrad Springs Office hurs 10/15, Mnday, 12:05 12:50pm 10/17, Wednesday

More information

CS1150 Principles of Computer Science Methods

CS1150 Principles of Computer Science Methods CS1150 Principles f Cmputer Science Methds Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang CS1150 UC. Clrad Springs Passing Parameters public static vid nprintln(string message,

More information

COP2800 Homework #3 Assignment Spring 2013

COP2800 Homework #3 Assignment Spring 2013 YOUR NAME: DATE: LAST FOUR DIGITS OF YOUR UF-ID: Please Print Clearly (Blck Letters) YOUR PARTNER S NAME: DATE: LAST FOUR DIGITS OF PARTNER S UF-ID: Please Print Clearly Date Assigned: 15 February 2013

More information

DECISION CONTROL CONSTRUCTS IN JAVA

DECISION CONTROL CONSTRUCTS IN JAVA DECISION CONTROL CONSTRUCTS IN JAVA Decisin cntrl statements can change the executin flw f a prgram. Decisin cntrl statements in Java are: if statement Cnditinal peratr switch statement If statement The

More information

CS1150 Principles of Computer Science Loops

CS1150 Principles of Computer Science Loops CS1150 Principles f Cmputer Science Lps Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang CS1150 UC. Clrad Springs Annuncement HW1 graded HW2 due tnight HW3 will be psted sn Due

More information

Test Pilot User Guide

Test Pilot User Guide Test Pilt User Guide Adapted frm http://www.clearlearning.cm Accessing Assessments and Surveys Test Pilt assessments and surveys are designed t be delivered t anyne using a standard web brwser and thus

More information

C++ Reference Material Programming Style Conventions

C++ Reference Material Programming Style Conventions C++ Reference Material Prgramming Style Cnventins What fllws here is a set f reasnably widely used C++ prgramming style cnventins. Whenever yu mve int a new prgramming envirnment, any cnventins yu have

More information

CS1150 Principles of Computer Science Boolean, Selection Statements (Part II)

CS1150 Principles of Computer Science Boolean, Selection Statements (Part II) CS1150 Principles f Cmputer Science Blean, Selectin Statements (Part II) Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang CS1150 Review What s the scientific ntatin f 9,200,000?

More information

Adverse Action Letters

Adverse Action Letters Adverse Actin Letters Setup and Usage Instructins The FRS Adverse Actin Letter mdule was designed t prvide yu with a very elabrate and sphisticated slutin t help autmate and handle all f yur Adverse Actin

More information

Faculty Textbook Adoption Instructions

Faculty Textbook Adoption Instructions Faculty Textbk Adptin Instructins The Bkstre has partnered with MBS Direct t prvide textbks t ur students. This partnership ffers ur students and parents mre chices while saving them mney, including ptins

More information

Project #1 - Fraction Calculator

Project #1 - Fraction Calculator AP Cmputer Science Liberty High Schl Prject #1 - Fractin Calculatr Students will implement a basic calculatr that handles fractins. 1. Required Behavir and Grading Scheme (100 pints ttal) Criteria Pints

More information

Laboratory #13: Trigger

Laboratory #13: Trigger Schl f Infrmatin and Cmputer Technlgy Sirindhrn Internatinal Institute f Technlgy Thammasat University ITS351 Database Prgramming Labratry Labratry #13: Trigger Objective: - T learn build in trigger in

More information

1 Version Spaces. CS 478 Homework 1 SOLUTION

1 Version Spaces. CS 478 Homework 1 SOLUTION CS 478 Hmewrk SOLUTION This is a pssible slutin t the hmewrk, althugh there may be ther crrect respnses t sme f the questins. The questins are repeated in this fnt, while answers are in a mnspaced fnt.

More information

TRAINING GUIDE. Overview of Lucity Spatial

TRAINING GUIDE. Overview of Lucity Spatial TRAINING GUIDE Overview f Lucity Spatial Overview f Lucity Spatial In this sessin, we ll cver the key cmpnents f Lucity Spatial. Table f Cntents Lucity Spatial... 2 Requirements... 2 Setup... 3 Assign

More information

Chapter-10 INHERITANCE

Chapter-10 INHERITANCE Chapter-10 INHERITANCE Intrductin: Inheritance is anther imprtant aspect f bject riented prgramming. C++ allws the user t create a new class (derived class) frm an existing class (base class). Inheritance:

More information

Assignment #5: Rootkit. ECE 650 Fall 2018

Assignment #5: Rootkit. ECE 650 Fall 2018 General Instructins Assignment #5: Rtkit ECE 650 Fall 2018 See curse site fr due date Updated 4/10/2018, changes nted in green 1. Yu will wrk individually n this assignment. 2. The cde fr this assignment

More information

Using SPLAY Tree s for state-full packet classification

Using SPLAY Tree s for state-full packet classification Curse Prject Using SPLAY Tree s fr state-full packet classificatin 1- What is a Splay Tree? These ntes discuss the splay tree, a frm f self-adjusting search tree in which the amrtized time fr an access,

More information

Web of Science Institutional authored and cited papers

Web of Science Institutional authored and cited papers Web f Science Institutinal authred and cited papers Prcedures written by Diane Carrll Washingtn State University Libraries December, 2007, updated Nvember 2009 Annual review f paper s authred and cited

More information

Eastern Mediterranean University School of Computing and Technology Information Technology Lecture3 Arrays

Eastern Mediterranean University School of Computing and Technology Information Technology Lecture3 Arrays Eastern Mediterranean University Schl f Cmputing and Technlgy Infrmatin Technlgy Lecture3 Arrays One Dimensinal Arrays Why d we need arrays? There are 800 salaried emplyees in a cmpany. Yu need t read

More information

Reading and writing data in files

Reading and writing data in files Reading and writing data in files It is ften very useful t stre data in a file n disk fr later reference. But hw des ne put it there, and hw des ne read it back? Each prgramming language has its wn peculiar

More information

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Yu will learn the fllwing in this lab: The UNIVERSITY f NORTH CAROLINA at CHAPEL HILL Designing a mdule with multiple memries Designing and using a bitmap fnt Designing a memry-mapped display Cmp 541 Digital

More information

Technical Paper. Installing and Configuring SAS Environment Manager in a SAS Grid Environment with a Shared Configuration Directory

Technical Paper. Installing and Configuring SAS Environment Manager in a SAS Grid Environment with a Shared Configuration Directory Technical Paper Installing and Cnfiguring Envirnment Manager in a Grid Envirnment with a Shared Cnfiguratin Directry Last Mdified: January 2018 Release Infrmatin Cntent Versin: January 2018. Trademarks

More information

Getting Started with the Web Designer Suite

Getting Started with the Web Designer Suite Getting Started with the Web Designer Suite The Web Designer Suite prvides yu with a slew f Dreamweaver extensins that will assist yu in the design phase f creating a website. The tls prvided in this suite

More information

Iteration Part 2. Review: Iteration [Part 1] Flow charts for two loop constructs. Review: Syntax of loops. while continuation_condition : statement1

Iteration Part 2. Review: Iteration [Part 1] Flow charts for two loop constructs. Review: Syntax of loops. while continuation_condition : statement1 Review: Iteratin [Part 1] Iteratin Part 2 CS111 Cmputer Prgramming Department f Cmputer Science Wellesley Cllege Iteratin is the repeated executin f a set f statements until a stpping cnditin is reached.

More information

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Yu will learn the fllwing in this lab: The UNIVERSITY f NORTH CAROLINA at CHAPEL HILL Cmp 541 Digital Lgic and Cmputer Design Spring 2016 Lab Prject (PART A): A Full Cmputer! Issued Fri 4/8/16; Suggested

More information

CS1150 Principles of Computer Science Introduction

CS1150 Principles of Computer Science Introduction Principles f Cmputer Science Intrductin Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang UC. Clrad Springs Intr f Intr Yanyan Zhuang PhD in netwrk systems yzhuang@uccs.edu Office

More information

ROCK-POND REPORTING 2.1

ROCK-POND REPORTING 2.1 ROCK-POND REPORTING 2.1 AUTO-SCHEDULER USER GUIDE Revised n 08/19/2014 OVERVIEW The purpse f this dcument is t describe the prcess in which t fllw t setup the Rck-Pnd Reprting prduct s that users can schedule

More information

Municode Website Instructions

Municode Website Instructions Municde Website instructins Municde Website Instructins The new and imprved Municde site allws yu t navigate t, print, save, e-mail and link t desired sectins f the Online Cde f Ordinances with greater

More information

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash UiPath Autmatin Walkthrugh Walkthrugh Calculate Client Security Hash Walkthrugh Calculate Client Security Hash Start with the REFramewrk template. We start ff with a simple implementatin t demnstrate the

More information

Because of security on the site, you cannot create a bookmark through the usual means. In order to create a bookmark that will work consistently:

Because of security on the site, you cannot create a bookmark through the usual means. In order to create a bookmark that will work consistently: The CllegeNet URL is: https://admit.applyweb.cm/admit/shibbleth/crnell Lg in with Crnell netid and Kerbers passwrd Because f security n the site, yu cannt create a bkmark thrugh the usual means. In rder

More information

Chapter 6: Lgic Based Testing LOGIC BASED TESTING: This unit gives an indepth verview f lgic based testing and its implementatin. At the end f this unit, the student will be able t: Understand the cncept

More information

$ARCSIGHT_HOME/current/user/agent/map. The files are named in sequential order such as:

$ARCSIGHT_HOME/current/user/agent/map. The files are named in sequential order such as: Lcatin f the map.x.prperties files $ARCSIGHT_HOME/current/user/agent/map File naming cnventin The files are named in sequential rder such as: Sme examples: 1. map.1.prperties 2. map.2.prperties 3. map.3.prperties

More information

Systems & Operating Systems

Systems & Operating Systems McGill University COMP-206 Sftware Systems Due: Octber 1, 2011 n WEB CT at 23:55 (tw late days, -5% each day) Systems & Operating Systems Graphical user interfaces have advanced enugh t permit sftware

More information

CISC-103: Web Applications using Computer Science

CISC-103: Web Applications using Computer Science CISC-103: Web Applicatins using Cmputer Science Instructr: Debra Yarringtn Email: yarringt@eecis.udel.edu Web Site: http://www.eecis.udel.edu/~yarringt TA: Patrick McClry Email: patmcclry@gmail.cm Office:

More information

Lab 0: Compiling, Running, and Debugging

Lab 0: Compiling, Running, and Debugging UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING CMPE13/L: INTRODUCTION TO PROGRAMMING IN C SPRING 2012 Lab 0: Cmpiling, Running, and Debugging Intrductin Reading This is the

More information

1 Binary Trees and Adaptive Data Compression

1 Binary Trees and Adaptive Data Compression University f Illinis at Chicag CS 202: Data Structures and Discrete Mathematics II Handut 5 Prfessr Rbert H. Slan September 18, 2002 A Little Bttle... with the wrds DRINK ME, (r Adaptive data cmpressin

More information

Dashboard Extension for Enterprise Architect

Dashboard Extension for Enterprise Architect Dashbard Extensin fr Enterprise Architect Dashbard Extensin fr Enterprise Architect... 1 Disclaimer... 2 Dependencies... 2 Overview... 2 Limitatins f the free versin f the extensin... 3 Example Dashbard

More information

- Replacement of a single statement with a sequence of statements(promotes regularity)

- Replacement of a single statement with a sequence of statements(promotes regularity) ALGOL - Java and C built using ALGOL 60 - Simple and cncise and elegance - Universal - Clse as pssible t mathematical ntatin - Language can describe the algrithms - Mechanically translatable t machine

More information

ClassFlow Administrator User Guide

ClassFlow Administrator User Guide ClassFlw Administratr User Guide ClassFlw User Engagement Team April 2017 www.classflw.cm 1 Cntents Overview... 3 User Management... 3 Manual Entry via the User Management Page... 4 Creating Individual

More information

Importing data. Import file format

Importing data. Import file format Imprting data The purpse f this guide is t walk yu thrugh all f the steps required t imprt data int CharityMaster. The system allws nly the imprtatin f demgraphic date e.g. names, addresses, phne numbers,

More information

CSE 361S Intro to Systems Software Lab #2

CSE 361S Intro to Systems Software Lab #2 Due: Thursday, September 22, 2011 CSE 361S Intr t Systems Sftware Lab #2 Intrductin This lab will intrduce yu t the GNU tls in the Linux prgramming envirnment we will be using fr CSE 361S this semester,

More information

Preparation: Follow the instructions on the course website to install Java JDK and jgrasp on your laptop.

Preparation: Follow the instructions on the course website to install Java JDK and jgrasp on your laptop. Lab 1 Name: Checked: (instructr r TA initials) Objectives: Learn abut jgrasp - the prgramming envirnment that we will be using (IDE) Cmpile and run a Java prgram Understand the relatinship between a Java

More information

CS5530 Mobile/Wireless Systems Swift

CS5530 Mobile/Wireless Systems Swift Mbile/Wireless Systems Swift Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang UC. Clrad Springs cat annunce.txt_ imacs remte VNC access VNP: http://www.uccs.edu/itservices/services/netwrk-andinternet/vpn.html

More information

Data Structure Interview Questions

Data Structure Interview Questions Data Structure Interview Questins A list f tp frequently asked Data Structure interview questins and answers are given belw. 1) What is Data Structure? Explain. Data structure is a way that specifies hw

More information

Using the Swiftpage Connect List Manager

Using the Swiftpage Connect List Manager Quick Start Guide T: Using the Swiftpage Cnnect List Manager The Swiftpage Cnnect List Manager can be used t imprt yur cntacts, mdify cntact infrmatin, create grups ut f thse cntacts, filter yur cntacts

More information

Computer Organization and Architecture

Computer Organization and Architecture Campus de Gualtar 4710-057 Braga UNIVERSIDADE DO MINHO ESCOLA DE ENGENHARIA Departament de Infrmática Cmputer Organizatin and Architecture 5th Editin, 2000 by William Stallings Table f Cntents I. OVERVIEW.

More information

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash UiPath Autmatin Walkthrugh Walkthrugh Calculate Client Security Hash Walkthrugh Calculate Client Security Hash Start with the REFramewrk template. We start ff with a simple implementatin t demnstrate the

More information

Report Writing Guidelines Writing Support Services

Report Writing Guidelines Writing Support Services Reprt Writing Guidelines Writing Supprt Services Overview The guidelines presented here shuld give yu an idea f general cnventins fr writing frmal reprts. Hwever, yu shuld always cnsider yur particular

More information

Relius Documents ASP Checklist Entry

Relius Documents ASP Checklist Entry Relius Dcuments ASP Checklist Entry Overview Checklist Entry is the main data entry interface fr the Relius Dcuments ASP system. The data that is cllected within this prgram is used primarily t build dcuments,

More information

EASTERN ARIZONA COLLEGE Java Programming I

EASTERN ARIZONA COLLEGE Java Programming I EASTERN ARIZONA COLLEGE Java Prgramming I Curse Design 2011-2012 Curse Infrmatin Divisin Business Curse Number CMP 126 Title Java Prgramming I Credits 3 Develped by Jeff Baer Lecture/Lab Rati 2 Lecture/2

More information

CS1150 Principles of Computer Science Final Review

CS1150 Principles of Computer Science Final Review CS1150 Principles f Cmputer Science Final Review Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang CS1150 UC. Clrad Springs Numerical Data Types Name Range Strage Size byte 2 7

More information

Interfacing to MATLAB. You can download the interface developed in this tutorial. It exists as a collection of 3 MATLAB files.

Interfacing to MATLAB. You can download the interface developed in this tutorial. It exists as a collection of 3 MATLAB files. Interfacing t MATLAB Overview: Getting Started Basic Tutrial Interfacing with OCX Installatin GUI with MATLAB's GUIDE First Buttn & Image Mre ActiveX Cntrls Exting the GUI Advanced Tutrial MATLAB Cntrls

More information

Overview of OPC Alarms and Events

Overview of OPC Alarms and Events Overview f OPC Alarms and Events Cpyright 2016 EXELE Infrmatin Systems, Inc. EXELE Infrmatin Systems (585) 385-9740 Web: http://www.exele.cm Supprt: supprt@exele.cm Sales: sales@exele.cm Table f Cntents

More information

Proper Document Usage and Document Distribution. TIP! How to Use the Guide. Managing the News Page

Proper Document Usage and Document Distribution. TIP! How to Use the Guide. Managing the News Page Managing the News Page TABLE OF CONTENTS: The News Page Key Infrmatin Area fr Members... 2 Newsletter Articles... 3 Adding Newsletter as Individual Articles... 3 Adding a Newsletter Created Externally...

More information

Programming Project: Building a Web Server

Programming Project: Building a Web Server Prgramming Prject: Building a Web Server Submissin Instructin: Grup prject Submit yur cde thrugh Bb by Dec. 8, 2014 11:59 PM. Yu need t generate a simple index.html page displaying all yur grup members

More information

MyUni Adding Content. Date: 29 May 2014 TRIM Reference: D2013/ Version: 1

MyUni Adding Content. Date: 29 May 2014 TRIM Reference: D2013/ Version: 1 Adding Cntent MyUni... 2 Cntent Areas... 2 Curse Design... 2 Sample Curse Design... 2 Build cntent by creating a flder... 3 Build cntent by creating an item... 4 Cpy r mve cntent in MyUni... 5 Manage files

More information

Workflow Exception Routing for edocs

Workflow Exception Routing for edocs Wrkflw Exceptin Ruting fr edcs Dcuments that have been apprved by all necessary ndes in wrkflw and are sent t the enrllment engine, but fail fr sme reasn are sent t exceptin ruting. There is ne wrkgrup

More information

SUB-USER ADMINISTRATION HELP GUIDE

SUB-USER ADMINISTRATION HELP GUIDE P a g e 1 SUB-USER ADMINISTRATION HELP GUIDE Welcme t Prsperity Bank. Any previusly created Sub-User lgin frm the F&M system befre Friday, May 16 cnverted t the Prsperity system. Once lgged n t the Prsperity

More information

Xilinx Answer Xilinx PCI Express DMA Drivers and Software Guide

Xilinx Answer Xilinx PCI Express DMA Drivers and Software Guide Xilinx Answer 65444 Xilinx PCI Express DMA Drivers and Sftware Guide Imprtant Nte: This dwnladable PDF f an Answer Recrd is prvided t enhance its usability and readability. It is imprtant t nte that Answer

More information

Ascii Art Capstone project in C

Ascii Art Capstone project in C Ascii Art Capstne prject in C CSSE 120 Intrductin t Sftware Develpment (Rbtics) Spring 2010-2011 Hw t begin the Ascii Art prject Page 1 Prceed as fllws, in the rder listed. 1. If yu have nt dne s already,

More information

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL The UNIVERSITY f NORTH CAROLINA at CHAPEL HILL Cmp 541 Digital Lgic and Cmputer Design Prf. Mntek Singh Spring 2019 Lab #7: A Basic Datapath; and a Sprite-Based Display Issued Fri 3/1/19; Due Mn 3/25/19

More information

Structure Query Language (SQL)

Structure Query Language (SQL) Structure Query Language (SQL) 1. Intrductin SQL 2. Data Definitin Language (DDL) 3. Data Manipulatin Language ( DML) 4. Data Cntrl Language (DCL) 1 Structured Query Language(SQL) 6.1 Intrductin Structured

More information

These tasks can now be performed by a special program called FTP clients.

These tasks can now be performed by a special program called FTP clients. FTP Cmmander FAQ: Intrductin FTP (File Transfer Prtcl) was first used in Unix systems a lng time ag t cpy and mve shared files. With the develpment f the Internet, FTP became widely used t uplad and dwnlad

More information

Integrating QuickBooks with TimePro

Integrating QuickBooks with TimePro Integrating QuickBks with TimePr With TimePr s QuickBks Integratin Mdule, yu can imprt and exprt data between TimePr and QuickBks. Imprting Data frm QuickBks The TimePr QuickBks Imprt Facility allws data

More information

Configuring Database & SQL Query Monitoring With Sentry-go Quick & Plus! monitors

Configuring Database & SQL Query Monitoring With Sentry-go Quick & Plus! monitors Cnfiguring Database & SQL Query Mnitring With Sentry-g Quick & Plus! mnitrs 3Ds (UK) Limited, Nvember, 2013 http://www.sentry-g.cm Be Practive, Nt Reactive! One f the best ways f ensuring a database is

More information

McGill University School of Computer Science COMP-206. Software Systems. Due: September 29, 2008 on WEB CT at 23:55.

McGill University School of Computer Science COMP-206. Software Systems. Due: September 29, 2008 on WEB CT at 23:55. Schl f Cmputer Science McGill University Schl f Cmputer Science COMP-206 Sftware Systems Due: September 29, 2008 n WEB CT at 23:55 Operating Systems This assignment explres the Unix perating system and

More information

TaiRox Mail Merge. Running Mail Merge

TaiRox Mail Merge. Running Mail Merge TaiRx Mail Merge TaiRx Mail Merge TaiRx Mail Merge integrates Sage 300 with Micrsft Wrd s mail merge functin. The integratin presents a Sage 300 style interface frm within the Sage 300 desktp. Mail Merge

More information

The following screens show some of the extra features provided by the Extended Order Entry screen:

The following screens show some of the extra features provided by the Extended Order Entry screen: SmartFinder Orders Extended Order Entry Extended Order Entry is an enhanced replacement fr the Sage Order Entry screen. It prvides yu with mre functinality while entering an rder, and fast access t rder,

More information

Update: Users are updated when their information changes (examples: Job Title or Department). o

Update: Users are updated when their information changes (examples: Job Title or Department). o Learn Basic User Integratin Batch File Prcessing The Learn Basic User Integratin is designed t manage the rganizatinal changes cmpanies are challenged with n a daily basis. Withut a basic type f integratin,

More information

MATH PRACTICE EXAM 2 (Sections 2.6, , )

MATH PRACTICE EXAM 2 (Sections 2.6, , ) MATH 1050-90 PRACTICE EXAM 2 (Sectins 2.6, 3.1-3.5, 7.1-7.6) The purpse f the practice exam is t give yu an idea f the fllwing: length f exam difficulty level f prblems Yur actual exam will have different

More information

Using the Swiftpage Connect List Manager

Using the Swiftpage Connect List Manager Quick Start Guide T: Using the Swiftpage Cnnect List Manager The Swiftpage Cnnect List Manager can be used t imprt yur cntacts, mdify cntact infrmatin, create grups ut f thse cntacts, filter yur cntacts

More information

Uploading Files with Multiple Loans

Uploading Files with Multiple Loans Uplading Files with Multiple Lans Descriptin & Purpse Reprting Methds References Per the MHA Handbk, servicers are required t prvide peridic lan level data fr activity related t the Making Hme Affrdable

More information

PAGE NAMING STRATEGIES

PAGE NAMING STRATEGIES PAGE NAMING STRATEGIES Naming Yur Pages in SiteCatalyst May 14, 2007 Versin 1.1 CHAPTER 1 1 Page Naming The pagename variable is used t identify each page that will be tracked n the web site. If the pagename

More information

Quick Start Guide. Basic Concepts. DemoPad Designer - Quick Start Guide

Quick Start Guide. Basic Concepts. DemoPad Designer - Quick Start Guide Quick Start Guide This guide will explain the prcess f installing & using the DemPad Designer sftware fr PC, which allws yu t create a custmised Graphical User Interface (GUI) fr an iphne / ipad & embed

More information

MediaTek LinkIt Development Platform for RTOS Memory Layout Developer's Guide

MediaTek LinkIt Development Platform for RTOS Memory Layout Developer's Guide MediaTek LinkIt Develpment Platfrm fr RTOS Memry Layut Develper's Guide Versin: 1.1 Release date: 31 March 2016 2015-2016 MediaTek Inc. MediaTek cannt grant yu permissin fr any material that is wned by

More information

Project 4: System Calls 1

Project 4: System Calls 1 CMPT 300 1. Preparatin Prject 4: System Calls 1 T cmplete this assignment, it is vital that yu have carefully cmpleted and understd the cntent in the fllwing guides which are psted n the curse website:

More information

CS1150 Principles of Computer Science Boolean, Selection Statements (Part II)

CS1150 Principles of Computer Science Boolean, Selection Statements (Part II) CS1150 Principles f Cmputer Science Blean, Selectin Statements (Part II) Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang CS1150 Review What s the scientific ntatin f 9,200,000?

More information

D e s i g n S c r i p t L a n g u a g e S u m m a r y P a g e 1

D e s i g n S c r i p t L a n g u a g e S u m m a r y P a g e 1 D e s i g n S c r i p t L a n g u a g e S u m m a r y P a g e 1 This manual is designed fr tw types f readers. First, thse wh want t make an initial fray int text based prgramming and wh may be currently

More information

DesignScript summary:

DesignScript summary: DesignScript summary: This manual is designed fr thse readers wh have sme experience with prgramming and scripting languages and want t quickly understand hw DesignScript implements typical prgramming

More information

CSCI L Topics in Computing Fall 2018 Web Page Project 50 points

CSCI L Topics in Computing Fall 2018 Web Page Project 50 points CSCI 1100-1100L Tpics in Cmputing Fall 2018 Web Page Prject 50 pints Assignment Objectives: Lkup and crrectly use HTML tags in designing a persnal Web page Lkup and crrectly use CSS styles Use a simple

More information

MIPS Architecture and Assembly Language Overview

MIPS Architecture and Assembly Language Overview MIPS Architecture and Assembly Language Overview Adapted frm: http://edge.mcs.dre.g.el.edu/gicl/peple/sevy/architecture/mipsref(spim).html [Register Descriptin] [I/O Descriptin] Data Types and Literals

More information

The Java if statement is used to test the condition. It checks Boolean condition: true or false. There are various types of if statement in java.

The Java if statement is used to test the condition. It checks Boolean condition: true or false. There are various types of if statement in java. Java If-else Statement The Java if statement is used t test the cnditin. It checks Blean cnditin: true r false. There are varius types f if statement in java. if statement if-else statement if-else-if

More information

Please contact technical support if you have questions about the directory that your organization uses for user management.

Please contact technical support if you have questions about the directory that your organization uses for user management. Overview ACTIVE DATA CALENDAR LDAP/AD IMPLEMENTATION GUIDE Active Data Calendar allws fr the use f single authenticatin fr users lgging int the administrative area f the applicatin thrugh LDAP/AD. LDAP

More information

Using the Turnpike Materials ProjectSolveSP System (Materials & ProjectSolveSP Admin)

Using the Turnpike Materials ProjectSolveSP System (Materials & ProjectSolveSP Admin) PROCESS FOR ADDING/EDITING A TECHNICIAN TO THE PROJECTSOLVESP SYSTEM Fr new users: Cnsultant will btain Persnnel Apprval fr the technician Cnsultant will enter the infrmatin int the Add/Update a New Technician

More information

CLIC ADMIN USER S GUIDE

CLIC ADMIN USER S GUIDE With CLiC (Classrm In Cntext), teaching and classrm instructin becmes interactive, persnalized, and fcused. This digital-based curriculum, designed by Gale, is flexible allwing teachers t make their classrm

More information

InformationNOW Elementary Scheduling

InformationNOW Elementary Scheduling InfrmatinNOW Elementary Scheduling Abut Elementary Scheduling Elementary scheduling is used in thse schls where grups f students remain tgether all day. Fr infrmatin n scheduling students using the Requests

More information

Technical Paper. Installing and Configuring SAS Environment Manager in a SAS Grid Environment

Technical Paper. Installing and Configuring SAS Environment Manager in a SAS Grid Environment Technical Paper Installing and Cnfiguring SAS Envirnment Manager in a SAS Grid Envirnment Last Mdified: Octber 2016 Release Infrmatin Cntent Versin: Octber 2016. Trademarks and Patents SAS Institute Inc.,

More information

Master Calendar Navigation

Master Calendar Navigation Master Calendar Navigatin Scheduling> Clinic Master Calendar Use arrws t navigate: day --> week --> mnth. Mnth View Gld bar current date White n shw rate past calendar dates Grey blcked time Green appintment

More information

Populate and Extract Data from Your Database

Populate and Extract Data from Your Database Ppulate and Extract Data frm Yur Database 1. Overview In this lab, yu will: 1. Check/revise yur data mdel and/r marketing material (hme page cntent) frm last week's lab. Yu will wrk with tw classmates

More information

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Yu will learn the fllwing in this lab: The UNIVERSITY f NORTH CAROLINA at CHAPEL HILL Cmp 541 Digital Lgic and Cmputer Design Prf. Mntek Singh Fall 2017 Lab #8: A Full Single-Cycle MIPS Prcessr Issued

More information

WordPress Overview for School Webmasters

WordPress Overview for School Webmasters WrdPress Overview fr Schl Webmasters Cntents 1. Rle f the Schl Webmaster... 2 2. Rle f the District Webmaster... 2 3. Schl Website Standards... 3 Header... 3 Fter... 3 Pages... 4 Sites... 5 4. Hw T...

More information

Using CppSim to Generate Neural Network Modules in Simulink using the simulink_neural_net_gen command

Using CppSim to Generate Neural Network Modules in Simulink using the simulink_neural_net_gen command Using CppSim t Generate Neural Netwrk Mdules in Simulink using the simulink_neural_net_gen cmmand Michael H. Perrtt http://www.cppsim.cm June 24, 2008 Cpyright 2008 by Michael H. Perrtt All rights reserved.

More information

SOLA and Lifecycle Manager Integration Guide

SOLA and Lifecycle Manager Integration Guide SOLA and Lifecycle Manager Integratin Guide SOLA and Lifecycle Manager Integratin Guide Versin: 7.0 July, 2015 Cpyright Cpyright 2015 Akana, Inc. All rights reserved. Trademarks All prduct and cmpany names

More information