Programming in C/C++ Lecture 1

Size: px
Start display at page:

Download "Programming in C/C++ Lecture 1"

Transcription

1 Prgramming in C/C++ Lecture 1 Natalia Silvis-Cividjian nsilvis@few.vu.nl vrije Universiteit amsterdam Outline Abut C/C++ language Abut this curse Getting started Data types Flw cntrl Functins Input/Output Self test exercises Prgramming in C/C++ / Lecture 1 / Outline Abut C/C++ language Prgramming in C/C++ / Lecture 1 /

2 Histry Legacy: Any C prgram is a legal C++ prgram. 4 C/C++ vs. Java Designed in Fr Advantage C 1970 system prgramming ecnmy f expressin, cmpact cde Java 1995 embedded cnsumer electrnic devices strng type checking Disadvantage Cnclusin t cncise fr human understanding, lack f run-time checks FAST, FLEXIBLE, BUT DANGEROUS slw SAFE, RELIABLE, BUT (relatively) SLOW Prgramming in C/C++ / Lecture 1 / C++ prgramming methdlgies prcedural prgramming (input => prcessing =>utput) bject riented prgramming (encapsulate data and actins in ne bject. bjects are bundles f data wh knw hw t d things t themselves) Cat is a class. Tmmy, Felix are bjects f type Cat Tmmy.Age = 4 ; Tmmy.walk() ; generic prgramming (make functins and classes fr any type f the arguments) T max (T left, T right) where T can be any type. 6 2

3 Outline Abut C/C++ language Abut this curse Prgramming in C/C++ / Lecture 1 / Abut this curse The place f this curse in the curriculum : Why C++? It is fast and widely used in cmpanies What can we learn during this curse? read, create and prcess data files create and manipulate dynamic data structures (lists and queues) learn t wrk with bjects learn and experiment with C++ mdern features, like template libraries, graphical libraries, etc Prgramming in C/C++ / Lecture 1 / Abut this curse Hw much time shuld we spend n this curse? (2 ECTS = 2 x 28 = 56 hurs) Lecture 1. Prcedural prgramming 1 (C/C++ basics) (2 h) Lecture 2 Prcedural prgramming 2 (pinters and linked lists) (2h) Lecture 3 Object riented prgramming (2 h) Lecture 4 Generic prgramming (2 hurs) Ttal : 8 hurs lectures Assignment 1. Graduatin (8 hurs) Assignment 2 AEX (16 hurs) Assignment 3 Cmpany (16 hurs) Assignment 4 Turism (8 hurs) Ttal : 48 hurs practicals 9 3

4 Abut this curse Hw d we get ur 2 ECTS? It is f curse useful t attend the lectures. But really imprtant t get yur credit pints is t deliver in time the 4 assignments. Curse website : Assistantance? Each student has an assistant (see website). Each assistant is available 2 h per week at the VU fr practical questins (see website). Further cmmunicatin via . Prgramming in C/C++ / Lecture 1 / Bks ** S. Prata, C++ Primer, SAMS, 2005 W. Savitch, Prblem slving with C++, Addisn Wesley, 2005 Leen Ammeraal, Basiscursus C++, Academic service, 1999 Liberty Jnes, Teach yurself C++ in 21 days, SAMS, 2005 T. Budd, C++ fr Java Prgrammers, Addisn Wesley, 1999 S. Lipmann, J. Lajie, C++ Primer, AT&T, 1998 Prgramming in C/C++ / Lecture 1 / Other resurces Practical guide n the C++ website Useful links t n-line tutrials, als n the website Annuncements n the website Prgramming in C/C++ / Lecture 1 /

5 Outline Abut C/C++ language Abut this curse Getting started Prgramming in C/C++ / Lecture 1 / A simple C++ prgram //example1.cpp Explanatin cmments /*Reads 3 numbers frm the keybard, sums the numbers and writes the sum n the screen*/ als cmments #include <istream> using namespace std; int main() int a,b,c ; cut << "Give 3 integer numbers: "; cin >> a >> b >> c; int sum = a + b + c; include directive standard namespace; always present main() functin; always present declaratin f integer variables a,b,c write message t the screen (cut) read a, b, c frm the keybard (cin) declare and assign variable sum cut << " The sum is : " << sum << endl; write the sum and insert a blank line return 0; end prgram here Getting started Under Unix: use g++, the GNU C/C++ cmpiler Cmpile : g++ example1.cpp Run: a.ut (The executable is named by default a.ut) Yu can cmpile and specify anther name fr the executable : g++ example1.cpp - example1.exe Run : example1.exe Under Windws: use Micrsft Visual C++ steps Cmpile - Build - Execute Details can be fund in the practical guide n the curse website. Reading: Bk Prata, ch.1 Getting started 15 5

6 What happens t a C++ prgram? Prgramming in C/C++ / Lecture 1 / Outline Abut C/C++ language Abut this curse Getting started Data types Prgramming in C/C++ / Lecture 1 / Primitive data types We discuss nly C++ specific things. The rest is like in Java. Reading : Prata bk, ch. 3,4. Bks & Internet ( Integer types: shrt, int, lng : default signed (+ and -). Can be unsigned (nly +) char Flating pint numbers: flat, duble, lng duble Blean type: bl Prgramming in C/C++ / Lecture 1 /

7 Pinters Pinter - the memry address f a variable. (Typical C, C++ data type) C++ accepts als this ntatin: int* p ; Arithmetics with pinters is pssible, like p++ Java nt) (in Prgramming in C/C++ / Lecture 1 / Cmpund types " " 111 " ( " " 7 " (! $#% # &' ( )*+!, '-. '-+ $/ "7 - #8 ( + 9! %;:=< 9%+ >>@? A#= #@( ##B + (! % C struct Date int mnth; int day int year ; struct PersnInf duble height ; int age ; Date birthday ; Prgramming in C/C++ / Lecture 1 / Cmpund types: arrays Hw t declare? int scres [5]; (n need t allcate with new like in Java) Hw t initialize? int scres [5] = 2, 5, 10, 5, 7 ; Hw t access elements? scres [0], scres [1]... scres [4]. Warning! C++ gives n errr if index is ut f range (Java des!) Hw t assign an indexed variable? scre [3] = scre [3] + 3 ; Prgramming in C/C++ / Lecture 1 /

8 C-Strings an array f characters terminated in '\0 Examples: #include <cstring> char name [10] = "abcd" ; char name[] = "abcd" ; Prgramming in C/C++ / Lecture 1 / C++ Strings!("!#" $ $ $ $ %%%% &#'*) &(' +-,/ (4,(+(+/5 4 ) 6#7*) 8-9(,(:;,;< =) >? 7 B> CED#+(7/> F;, 8/, 8-, B B,(G-C(H2;F#, B +I #include <string> string str ; string str ("abc"); string str = "abc"; \\ C++ string = C-string J F;7E2;4,(+K+E!#"!(" $ $ $ $ %%%% &;'*F(,;++#C@/7*D#+(7(H D4K@E7@EL;7 BH D;8;2M> ) C 8#+;N +(> BO )P3Q B 7,R(+KS T-B ) > 7(+/7 4 7@/7 8(>) I +(> B I,(> 5 )< Q*+(,@E7E4 ) 6K7-+(> B O )P =;LD#> 2(F;7;2;6U+H C B) 4 4 7V;, 4() 8;R(7#W +(> B X#0;+K> B Y-Z/2(C 8#2(,(> 7 8;,(> 7;+Y/+#> B ) 8;V(+ +(> B X[/+K> B Y-Z/2(C@EA;, B 7;+> TC-+#> B ) 8;V(+ +(> B I H ) 8;R 5 +#> B XK< ZH ) 8;R(+/,+DL(+K> B ) 8;VE) 8/,-+#> B ) 8;V +(> B I +() \;7 5 <Z3B 7(> DB 8#+> F; ;V#> F-C(H+(> B 23 Type cnversins ati() #include <stdlib.h> int ati( cnst char *str ); cnverts str int an integer, and returns that integer. str shuld start with sme srt f number, and ati() will stp reading frm str as sn as a nn-numerical character has been read. Fr example, i = ati( " " ); wuld result in i being set t 512. Yu can use (Standard C I/O) sprintf() t cnvert a number int a string.cnverts a string t an integer atf() cnverts a C string t a flating pint number Prgramming in C/C++ / Lecture 1 /

9 Outline Abut C/C++ language Abut this curse Getting started Data types Flw cntrl Prgramming in C/C++ / Lecture 1 / Flw cntrl statements if - else switch break while lp d-while lp fr lp Gt nt recmmended Read mre in bk Prata ch. 5,6 Prgramming in C/C++ / Lecture 1 / Prgramming style Indenting Cmments Naming cnstants The C++ cmpiler des nt care, but the prgram readers d! Prgramming in C/C++ / Lecture 1 /

10 Outline Abut C/C++ language Abut this curse Getting started Data types Flw cntrl Functins Prgramming in C/C++ / Lecture 1 / Functins Tp dwn apprach A functin has : n a declaratin = name + frmal parameters (nly header+cmments abut what is des n a definitin = name + frmal parameters+bdy (hw it des) n ne f many calls = name + actual parameters (functin at wrk) C++ requires that either the cmplete definitin r at least the functin declaratin appears in the cde befre the functin is called (see the fllwing 2 examples). 29 Functins: example 1 Prgramming in C/C++ / Lecture 1 /

11 Functins: example2 Prgramming in C/C++ / Lecture 1 / Functins:plugging in parameters When the functin is called, the actual parameters f a functin are plugged in its frmal parameters. C++ has 2 plug-in mechanisms: Call by value int d_stuff (int a) ; the value f a is plugged in Call by reference vid d_stuff (int& a) ; the address f a is plugged in Prgramming in C/C++ / Lecture 1 /

12 example #include <istream> using namespace std; vid d_stuff(int par_value, int& par_ref) int main() int a,b ; a=1; b=2; d_stuff (a,b); cut << "a after call"<< a << endl ; cut << "b after call" << b << endl ; return 0 ; Example cntd vid d_stuff (int par_value, int&par_ref) par_value = 111; cut << "par_value in functin call is"<< par_value << end par_ref = 222; cut << "par_ref in functin call is"<< par_ref << endl ; utput par_value in functin call is 111 par_ref in functin call is 222 a after functin call is 1 b after functin call is 222 Prgramming in C/C++ / Lecture 1 / by-value vs by- reference example 4.1 #include <istream> // fr cut #include <cmath> // fr sqrt using namespace std ; // slves the quadratic equatin ax^2+bx+c = 0 // if rts are real the functin returns the rts in rt1 and // rt2 and if they are cmplex functin returns false bl quadslve (flat a, flat b, flat c, flat& rt1, flat& rt2) flat disc ; disc = b*b - 4*a*c ; if (disc < 0.0) return false; else rt1 = (-b + sqrt (disc)) / (2 * a) ; rt2 = (-b - sqrt (disc)) / (2 * a) ; return true ; //in by value //ut by reference 12

13 by-value vs by- reference example 4.2 int main() flat c1 = 1.0,c2 = 1.0, c3 = -6.0; flat r1, r2 ; if (quadslve (c1,c2,c3,r1,r2)) // here is the call cut << "Rts are " << r1 << "and " << r2 << endl ; else cut << "Cmplex rts" << endl ; return 1 ; Prgramming in C/C++ / Lecture 1 / When t use call-by-reference? If yu want the arguments t remain changed als after the functin call If yu want yur functin t return mre than ne value (see example 4) If the argument yu want t pass t the functin is a large structure (like an array) Prgramming in C/C++ / Lecture 1 / Passing arrays as parameters An index variable can be frmal parameter fr a functin: add (scre[3]); Arrays can be frmal parameters fr functins = array parameters During the call the functin gets the address f the first element but nt the array length. Anther parameter t tell the length is always required. 13

14 Array parameters vid fill_array (int a[], int size) cut << "Enter " << size << "numbers":\n"); fr (int i = 0 ; i < size ; i++) cin >> a[i]; functin call: fill_array (scre,5) ; Prgramming in C/C++ / Lecture 1 / Outline Abut C/C++ language Abut this curse Getting started Data types Flw cntrl Functins Input/Output Prgramming in C/C++ / Lecture 1 / Input and utput (I/O) C/C++ d nt have built-in I/O functins C uses a standard library f functins, standard I/O package, stdi.h C++ uses a standard library f classes, istream.h, and fstream.h Prgramming in C/C++ / Lecture 1 /

15 Input and utput Standard I/O (cnsle) n C library Ch, strings, numbers n C++ library (streams) Char, Strings, numbers File I/O Prgramming in C/C++ / Lecture 1 / C standard I/O library <stdi.h> Standard I/O library inherited frm riginal C. Requires #include <stdi.h> Hw t read/write a character? c = getchar(); putchar ('x') ; Hw t read/write a C-string? gets(name) and puts ( Hell ) Hw t frmat input/utput? scanf and printf using the cnversin characters: scanf ( %d, &a) ; // reads an integer frm keybard int i = 5 ; // writes n the screen int j = 7 ; duble d = i / (duble) j ; printf ("the value f %d ver %d is %f", i,j,d); Prgramming in C/C++ / Lecture 1 / C++ streams A stream is a flw f bytes (~river). Each prgram has an input stream and an utput stream. A C++ stream is an bject with member functins: pen(), clse(), fail(), getline(), get(), put(), setf(), ef() Streams can be arguments fr functins, but must be called by reference Prgramming in C/C++ / Lecture 1 /

16 Cnsle I/O: #include <istream> cin is an input stream standard cnnected t the keybard. N need t declare. Cin is an bject f istream class. Example : cin >> number ; cut is an utput stream standard cnnected t the screen. N need t declare. Cut is an bject f stream class. Example : cut << the number is << number ; Prgramming in C/C++ / Lecture 1 / I/O class inheritance #Include istream creates 8 stream bjects:cin, cut, cerr, clg Prgramming in C/C++ / Lecture 1 / Cnsle input 16

17 Single character Cnsle input Hw t read ne character frm the keybard? cin >> ch. OK, but skips spaces. cin.get (ch) r ch = cin.get(). Reads any next character (als space tab r nl). Hw t read mre single characters frm the keybard? #include <istream> using namespace std ; int main() char ch; cin.get(ch) ; while (ch!= '\n') cut << ch ; cin.get(ch) ; return 0 ; Other istream methds peek() returns the next character frm input withut extracting it. ch=cin.peek() cin.putback(ch) puts back a ch in the input stream. Prgramming in C/C++ / Lecture 1 / C String input char name[20]; char dessert[30]; cin << name ; cin << dessert; Prblem. cin is a wrd-riented methd. cin reads until the first whitespace. Yu cannt input Alan Pearsn fr name. Slutin: use getline line riented methd Prgramming in C/C++ / Lecture 1 /

18 C string input Line riented methds read line until nl. Here getline() functin is a class methd fr istream class. cin is a istream bject. getline() discards the nl get() leaves nl in the input queue #include <istream> char name[20]; char dessert[30]; cin.getline << name ; cin.getline << dessert; Prgramming in C/C++ / Lecture 1 / C++ string input Using cin string line ; cin >> line ; // reads in a string until a whitespace, ignres leading spaces Prgramming in C/C++ / Lecture 1 / C++ strings input Use getline. Reads a line until a NL int a C++ string string str; getline(cin,str); //ntice different syntax Here getline is nt a class methd because istream class cannt prcess string. It was designed lng befre string existed. This methd has a bug in Visual C++. See website. Prgramming in C/C++ / Lecture 1 /

19 C++ string cnsle input getline (cin, line, ch) // reads a string line until ch. Als buggy in Visual C++ Prgramming in C/C++ / Lecture 1 / Numbers cnsle input Hw t read mre integers frm the keybard? Use a sentinelcntrlled while lp. A sentinel (r trailer) is a special predetermined value t mark the end f input. cnst SENTINEL = -999; int data ; cut << Enter an integer (-999 t end input): ; cin >> data ; while (data!= SENTINEL) d_stuff (data) ; cin >> data ; Prgramming in C/C++ / Lecture 1 / Integers input Hw t check fr valid input? cin stream returns FALSE if the input peratin fails (e.g. a char is fed instead f integer) int data; if (! (cin >> data)) cut << please enter nly numeric characters ; cin.clear() ; cin.ignre (1000) ; Prgramming in C/C++ / Lecture 1 /

20 Mixed string and numeric input #include <istream> using namespace std; char address[80] ; PROBLEM! int years; int main() cut << "Hw ld are yu?"; cin >> years ; cut << "What is yur address?" ; cin.getline(address,80) ; return 0 ; Prgramming in C/C++ / Lecture 1 / Mixed string and numeric input #include <istream> using namespace std; char address[80] ; int years; int main() cut << "Hw ld are yu?"; cin >> years ; cin.get() ; cut << "What is yur address?" ; cin.getline(address,80) ; return 0 ; Prgramming in C/C++ / Lecture 1 / Cnsle utput 20

21 Char cnsle utput Hw t write ne character t the screen? cut << ch ; r cut.put (ch) // sends ne character t the screen. Cut( W ) writes 87 in lder versins f C++. Cut.put( W ) wrks fine. Prgramming in C/C++ / Lecture 1 / Frmatting with cut Include this sequence cut.setf (is::fixed) ; cut.setf (is::shwpint) ; cut.precisin (2) ; //flating pint display precisin Or use a header additinal manipulatrs p.981 #include <imanip>. cut << setw (7) << number ; with imanip Cut.fill( * ) replaces filling specas with * Prgramming in C/C++ / Lecture 1 / File I/O 21

22 #include <fstream> Files are als streams like cin and cut.. <fstream> library cntains a few classes: ifstream fr input file stream; Example : ifstream in_stream ; fstream fr utput file stream; Example: fstream ut_stream ; Prgramming in C/C++ / Lecture 1 / File names an external name (SYSTEM name) = infile.dat the stream name (PROGRAM VARIABLE) = in_stream. Prgramming in C/C++ / Lecture 1 / File I/O Steps t read frm a file infile.dat and write t a file utfile.dat: #include <fstream> using namespace std; ifstream in_stream ; fstream ut_stream ; int var; -Place the #include <fstream> directive in_stream.pen( infile.dat ); -Declare input and utput streams -Cnnect each stream t a file = pen files -Get input frm the file -Send utput t the utput file -Discnnect the streams = clse files ut_stream.pen( utfile.dat ); in_stream >> var; ut_stream << var << endl; in_stream.clse() ; ut_stream.clse(); 22

23 #include <fstream> //reads 3 numbers frm the file infile.dat and sends the sum t the utput file utfile.dat using namespace std; int main() int first, secnd, third; ifstream in_stream ; fstream ut_stream ; in_stream.pen ("infile.dat"); ut_stream.pen ("utfile.dat"); in_stream >> first >> secnd >> third ; ut_stream << "The sum f the first 3 \n" << "numbers in the infile.dat file\n" << "is " << (first + secnd + third) << endl ; in_stream.clse(); ut_stream.clse(); return 0 ; File I/O:useful functins All techniques shwn fr cnsle I/O are valid fr file streams. Hw t read the file name frm keybard? string filename ; ifstream instream ; cut << Enter file name: \n ; cin >> filename ; instream.pen (filename.c_str()) ; // cnverts C++ string t C-string Hw t read integers frm a file? in_stream >> number ;// jumps ver blank characters in the file. Prgramming in C/C++ / Lecture 1 / Fail() Hw t check fr file pening success? Use fail() member functin and exit (1) frm <cstdlib> library. #include <cstdlib> #include <fstream> #include <istream> using namespace std; int main() ifstream ins ; // file t be pened fr input ins.pen ( data.dat ) ; if (ins.fail()) // if pening fails end prgram cut << input file pening failed. \n ; exit (1) ; // exit functin frm cstdlib library Prgramming in C/C++ / Lecture 1 /

24 EOF Hw t test the end f the file? Each stream has a member functin ef() which becmes true when the prgram tries t read a character beynd the end f the file. in_stream.get (next) ; while (! in_stream.ef()) d_stuff (next) ; in_stream.get(next) ; Example: ab c prgram reads: ef() a false b false \n false c false End f file marker true => stp Prgramming in C/C++ / Lecture 1 / Other slutins Use peek() Use cin.get() (returns zer if reaches EOF). Prgramming in C/C++ / Lecture 1 / File I/O: ef () and fail () example #include <istream> #include <fstream> #include <cstdlib> using namespace std ; int main() flat x,sum; ifstream ins ; //input stream fstream uts ; //utput stream ins.pen ("indata.dat") ; //pens files, exit if fail if (ins.fail()) cut << "Can't pen indata.dat" << endl ; exit(1) ; uts.pen ("results.dat") ; if (uts.fail()) cut << "Can't pen results.dat" << endl ; exit(1) ; Prgramming in C/C++ / Lecture 1 /

25 File I/O: ef () and fail () example sum = 0.0 ; ins >> x ; while (!ins.ef()) sum+=x ; ins >> x ; uts << "The sum is " << sum << endl ; cut << "The sum is " << sum << endl ; ins.clse() ; uts.clse() ; return 0 ; Prgramming in C/C++ / Lecture 1 / Self test exercises 1. What is the utput f the fllwing prgram lines, when embedded in a crrect prgram that declares all variables t be f type char? a = b ; b = c ; c = a ; cut << a << b << c << c ; 2. What is the utput f the fllwing prgram lines, when embedded in a crrect prgram that declares x t be f type int? x = 10 ; while (x >0) cut << x << endl ; x = x - 3; Prgramming in C/C++ / Lecture 1 / Self test exercises 3. What is the utput f the fllwing prgram lines, when embedded in a crrect prgram that declares x t be f type int? x = - 42 ; d cut << x << endl ; x = x 3 ; while (x>0) ; 4. Write a cmplete C++ prgram t utput the even numbers frm 0 t 20 ne per line. The prgram des nthing else. 5. Write a functin t swap tw dubles. Use this functin in a prgram t determine and print the maximum element f an array. Prgramming in C/C++ / Lecture 1 /

26 What is wrng with this cde? #include <istream> using namespace std; int main() int ct=0 ; char ch ; cin >> ch ; while (ch!= '\n'); cut << ch ; ct ++ ; cin >> ch ; cut << ct << endl ; return 0 ; Self test exercises 7. What utput will be prduced when the flwing lines are executed, assuming the file list.dat cntains the data shwn? ifstream ins ; ins.pen ( list,dat ) ; int cunt = 0, next ; while (ins >> next) cunt ++ ; cut << next << endl ; ins.clse() ; cut << cunt ; The file list.dat cntains the fllwing three numbers: Prgramming in C/C++ / Lecture 1 /

Programming in C/C

Programming in C/C Programming in C/C++ 2006 http://few.vu.nl/~nsilvis/c++/2006 Natalia Silvis-Cividjian e-mail: nsilvis@few.vu.nl vrije Universiteit amsterdam Topics about C++ (10 min) about this course (5 min) C++ basics:data

More information

Programming in C/C

Programming in C/C Programming in C/C++ 2004-2005 http://cs.vu.nl/~nsilvis/c++/2005 Natalia Silvis-Cividjian e-mail: nsilvis@few.vu.nl Topics about C++ language about this course C++ basics self test exercises (10 min) (10

More information

Programming in C/C

Programming in C/C Programming in C/C++ 2006 C/C++ vs. Java C Designed in 1970 Java 1995 http://few.vu.nl/~nsilvis/c++/2006 For Advantage system programming economy of expression, compact code Example: This sequence copies

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

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

Mathematical Functions, Characters, and Strings. APSC 160 Chapter 4

Mathematical Functions, Characters, and Strings. APSC 160 Chapter 4 Mathematical Functins, Characters, and Strings APSC 160 Chapter 4 1 Objectives T slve mathematics prblems by using the C++ mathematical functins (4.2) T represent characters using the char type (4.3) T

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

Programming in C/C++ Lecture 3

Programming in C/C++ Lecture 3 Prgramming in C/C++ Lecture 3 http://few.vu.nl/~nsilvis/c++/2006 Natalia Silvis-Cividjian e-mail: nsilvis@few.vu.nl vrije Universiteit amsterdam Object Oriented Prgramming in C++ abut bject riented prgramming

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

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

Eastern Mediterranean University School of Computing and Technology Information Technology Lecture2 Functions 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

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 Opening Prblem Find the sum f integers frm 1 t 10, frm 20

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

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

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

- 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

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

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

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

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

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

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

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

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

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

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

MySqlWorkbench Tutorial: Creating Related Database Tables

MySqlWorkbench Tutorial: Creating Related Database Tables MySqlWrkbench Tutrial: Creating Related Database Tables (Primary Keys, Freign Keys, Jining Data) Cntents 1. Overview 2 2. Befre Yu Start 2 3. Cnnect t MySql using MySqlWrkbench 2 4. Create Tables web_user

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

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

Exporting and Importing the Blackboard Vista Grade Book

Exporting and Importing the Blackboard Vista Grade Book Exprting and Imprting the Blackbard Vista Grade Bk Yu can use the Blackbard Vista Grade Bk with a spreadsheet prgram, such as Micrsft Excel, in a number f different ways. Many instructrs wh have used Excel

More information

Relational Operators, and the If Statement. 9.1 Combined Assignments. Relational Operators (4.1) Last time we discovered combined assignments such as:

Relational Operators, and the If Statement. 9.1 Combined Assignments. Relational Operators (4.1) Last time we discovered combined assignments such as: Relatinal Operatrs, and the If Statement 9/18/06 CS150 Intrductin t Cmputer Science 1 1 9.1 Cmbined Assignments Last time we discvered cmbined assignments such as: a /= b + c; Which f the fllwing lng frms

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

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

Computational Methods of Scientific Programming Fall 2008

Computational Methods of Scientific Programming Fall 2008 MIT OpenCurseWare http://cw.mit.edu 12.010 Cmputatinal Methds f Scientific Prgramming Fall 2008 Fr infrmatin abut citing these materials r ur Terms f Use, visit: http://cw.mit.edu/terms. 12.010 Hmewrk

More information

Lab 5 Sorting with Linked Lists

Lab 5 Sorting with Linked Lists UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING CMPE13/L: INTRODUCTION TO PROGRAMMING IN C WINTER 2013 Lab 5 Srting with Linked Lists Intrductin Reading This lab intrduces

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

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

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

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

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

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

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

Messing with SQL in Dataflex What is available in Dataflex 19.0 o cconnection.pkg

Messing with SQL in Dataflex What is available in Dataflex 19.0 o cconnection.pkg Messing with SQL in Dataflex What is available in Dataflex 19.0 ccnnectin.pkg Lts f useful stuff in there. Will take sme time t srt. DataDict.pkg Sme calls in the dd fr SQL It has a helper class. Des a

More information

Primitive Types and Methods. Reference Types and Methods. Review: Methods and Reference Types

Primitive Types and Methods. Reference Types and Methods. Review: Methods and Reference Types Primitive Types and Methds Java uses what is called pass-by-value semantics fr methd calls When we call a methd with input parameters, the value f that parameter is cpied and passed alng, nt the riginal

More information

BI Publisher TEMPLATE Tutorial

BI Publisher TEMPLATE Tutorial PepleSft Campus Slutins 9.0 BI Publisher TEMPLATE Tutrial Lessn T2 Create, Frmat and View a Simple Reprt Using an Existing Query with Real Data This tutrial assumes that yu have cmpleted BI Publisher Tutrial:

More information

STIDistrict AL Rollover Procedures

STIDistrict AL Rollover Procedures 2009-2010 STIDistrict AL Rllver Prcedures General Infrmatin abut STIDistrict Rllver IMPORTANT NOTE! Rllver shuld be perfrmed between June 25 and July 25 2010. During this perid, the STIState applicatin

More information

Access the site directly by navigating to in your web browser.

Access the site directly by navigating to   in your web browser. GENERAL QUESTIONS Hw d I access the nline reprting system? Yu can access the nline system in ne f tw ways. G t the IHCDA website at https://www.in.gv/myihcda/rhtc.htm and scrll dwn the page t Cmpliance

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

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

Telecommunication Protocols Laboratory Course

Telecommunication Protocols Laboratory Course Telecmmunicatin Prtcls Labratry Curse Lecture 2 March 11, 2004 http://www.ab.fi/~lpetre/teleprt/teleprt.html 1 Last time We examined sme key terms: prtcl, service, layer, netwrk architecture We examined

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

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

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

Simple Regression in Minitab 1

Simple Regression in Minitab 1 Simple Regressin in Minitab 1 Belw is a sample data set that we will be using fr tday s exercise. It lists the heights & weights fr 10 men and 12 wmen. Male Female Height (in) 69 70 65 72 76 70 70 66 68

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

Common Language Runtime

Common Language Runtime Intrductin t.net framewrk.net is a general-purpse sftware develpment platfrm, similar t Java. Micrsft intrduced.net with purpse f bridging gap between different applicatins..net framewrk aims at cmbining

More information

Backup Operator Mode User Manual

Backup Operator Mode User Manual Backup Operatr Mde User Manual Fr Server Editin Fr Micrsft Windws Intrductin Frm V7.0.3, the Attix5 Pr Server Editin (SE) Backup Client supprts Backup Operatr (BO) mde. This mde enables the backup and

More information

Chapter 2 Basic Operations

Chapter 2 Basic Operations Chapter 2 Basic Operatins Lessn B String Operatins 10 Minutes Lab Gals In this Lessn, yu will: Learn hw t use the fllwing Transfrmatins: Set Replace Extract Cuntpattern Split Learn hw t apply certain Transfrmatins

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

What s New in Banner 9 Admin Pages: Differences from Banner 8 INB Forms

What s New in Banner 9 Admin Pages: Differences from Banner 8 INB Forms 1 What s New in Banner 9 Admin Pages: Differences frm Banner 8 INB Frms Majr Changes: Banner gt a face-lift! Yur hme page is called Applicatin Navigatr and is the entry/launch pint t all pages Banner is

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

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

Introduction to functions in C

Introduction to functions in C Intrductin t functins in C Lecture Tpics Intrductin t functins in C Overview f C standard library Lecture materials Textbk 14.1, 14.2, 14.4 SP16 1 V. Kindratenk Intrductin t functins in C A functin in

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

Copyrights and Trademarks

Copyrights and Trademarks Cpyrights and Trademarks Sage One Accunting Cnversin Manual 1 Cpyrights and Trademarks Cpyrights and Trademarks Cpyrights and Trademarks Cpyright 2002-2014 by Us. We hereby acknwledge the cpyrights and

More information

Scroll down to New and another menu will appear. Select Folder and a new

Scroll down to New and another menu will appear. Select Folder and a new Creating a New Flder Befre we begin with Micrsft Wrd, create a flder n yur Desktp named Summer PD. T d this, right click anywhere n yur Desktp and a menu will appear. Scrll dwn t New and anther menu will

More information

INFOCUS Enrollment by Count Date

INFOCUS Enrollment by Count Date 0 INFOCUS Enrllment by Cunt Date Crsstab 11/5/2012 Sftware Technlgy, Inc. Thmas Murphy 0 Enrllment by Cunt Date Crsstab OBJECTIVES: A crsstab reprt that cunts enrlled and withdrawn students based n a cunt

More information

TRAINING GUIDE. Lucity Mobile

TRAINING GUIDE. Lucity Mobile TRAINING GUIDE The Lucity mbile app gives users the pwer f the Lucity tls while in the field. They can lkup asset infrmatin, review and create wrk rders, create inspectins, and many mre things. This manual

More information

The programming for this lab is done in Java and requires the use of Java datagrams.

The programming for this lab is done in Java and requires the use of Java datagrams. Lab 2 Traffic Regulatin This lab must be cmpleted individually Purpse f this lab: In this lab yu will build (prgram) a netwrk element fr traffic regulatin, called a leaky bucket, that runs ver a real netwrk.

More information

CS510 Concurrent Systems Class 2. A Lock-Free Multiprocessor OS Kernel

CS510 Concurrent Systems Class 2. A Lock-Free Multiprocessor OS Kernel CS510 Cncurrent Systems Class 2 A Lck-Free Multiprcessr OS Kernel The Synthesis kernel A research prject at Clumbia University Synthesis V.0 ( 68020 Uniprcessr (Mtrla N virtual memry 1991 - Synthesis V.1

More information

ONTARIO LABOUR RELATIONS BOARD. Filing Guide. A Guide to Preparing and Filing Forms and Submissions with the Ontario Labour Relations Board

ONTARIO LABOUR RELATIONS BOARD. Filing Guide. A Guide to Preparing and Filing Forms and Submissions with the Ontario Labour Relations Board ONTARIO LABOUR RELATIONS BOARD Filing Guide A Guide t Preparing and Filing Frms and Submissins with the Ontari Labur Relatins Bard This Filing Guide prvides general infrmatin nly and shuld nt be taken

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

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

Chapter 3 Stack. Books: ISRD Group New Delhi Data structure Using C

Chapter 3 Stack. Books: ISRD Group New Delhi Data structure Using C C302.3 Develp prgrams using cncept f stack. Bks: ISRD Grup New Delhi Data structure Using C Tata McGraw Hill What is Stack Data Structure? Stack is an abstract data type with a bunded(predefined) capacity.

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

It has hardware. It has application software.

It has hardware. It has application software. Q.1 What is System? Explain with an example A system is an arrangement in which all its unit assemble wrk tgether accrding t a set f rules. It can als be defined as a way f wrking, rganizing r ding ne

More information

OpenSceneGraph Tutorial

OpenSceneGraph Tutorial OpenSceneGraph Tutrial Michael Kriegel & Meiyii Lim, Herit-Watt University, Edinburgh February 2009 Abut Open Scene Graph: Open Scene Graph is a mdern pen surce scene Graph. Open Scene Graph (r shrt OSG)

More information

Transmission Control Protocol Introduction

Transmission Control Protocol Introduction Transmissin Cntrl Prtcl Intrductin TCP is ne f the mst imprtant prtcls f Internet Prtcls suite. It is mst widely used prtcl fr data transmissin in cmmunicatin netwrk such as Internet. Features TCP is reliable

More information

History of Java. VM (Java Virtual Machine) What is JVM. What it does. 1. Brief history of Java 2. Java Version History

History of Java. VM (Java Virtual Machine) What is JVM. What it does. 1. Brief history of Java 2. Java Version History Histry f Java 1. Brief histry f Java 2. Java Versin Histry The histry f Java is very interesting. Java was riginally designed fr interactive televisin, but it was t advanced technlgy fr the digital cable

More information

Student participation Students can register online, track progress, express interest and demonstrate proficiency.

Student participation Students can register online, track progress, express interest and demonstrate proficiency. Page 1 f 31 Intrductin Our MAG 10 Learning Management System (LMS) is a Web based technlgy used t plan, implement, and assess a specific learning prcess. LMS is a training prgram which prvides cmplete

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

Word 2007 The Ribbon, the Mini toolbar, and the Quick Access Toolbar

Word 2007 The Ribbon, the Mini toolbar, and the Quick Access Toolbar Wrd 2007 The Ribbn, the Mini tlbar, and the Quick Access Tlbar In this practice yu'll get the hang f using the new Ribbn, and yu'll als master the use f the helpful cmpanin tls, the Mini tlbar and the

More information

Due Date: Lab report is due on Mar 6 (PRA 01) or Mar 7 (PRA 02)

Due Date: Lab report is due on Mar 6 (PRA 01) or Mar 7 (PRA 02) Lab 3 Packet Scheduling Due Date: Lab reprt is due n Mar 6 (PRA 01) r Mar 7 (PRA 02) Teams: This lab may be cmpleted in teams f 2 students (Teams f three r mre are nt permitted. All members receive the

More information

Tips and Tricks in Word 2000 Part II. Presented by Carla Torgerson

Tips and Tricks in Word 2000 Part II. Presented by Carla Torgerson Tips and Tricks in Wrd 2000 Part II Presented by Carla Trgersn (cnt2@psu.edu) 1. using styles Styles are used t create frmatting shrtcuts s yu can create a dcument that has frmatting cnsistency. Fr example,

More information

Access 2000 Queries Tips & Techniques

Access 2000 Queries Tips & Techniques Access 2000 Queries Tips & Techniques Query Basics The query is the basic tl that Access prvides fr retrieving infrmatin frm yur database. Each query functins like a questin that can be asked immediately

More information

Querying Data with Transact SQL

Querying Data with Transact SQL Querying Data with Transact SQL Curse Cde: 20761 Certificatin Exam: 70-761 Duratin: 5 Days Certificatin Track: MCSA: SQL 2016 Database Develpment Frmat: Classrm Level: 200 Abut this curse: This curse is

More information

EASTERN ARIZONA COLLEGE Visual Basic Programming I

EASTERN ARIZONA COLLEGE Visual Basic Programming I EASTERN ARIZONA COLLEGE Visual Basic Prgramming I Curse Design 2015-2016 Curse Infrmatin Divisin Business Curse Number CMP 121 Title Visual Basic Prgramming I Credits 3 Develped by Lydia Mata Lecture/Lab

More information

UPGRADING TO DISCOVERY 2005

UPGRADING TO DISCOVERY 2005 Centennial Discvery 2005 Why Shuld I Upgrade? Discvery 2005 is the culminatin f ver 18 mnths wrth f research and develpment and represents a substantial leap frward in audit and decisin-supprt technlgy.

More information

Importing an Excel Worksheet into SAS (commands=import_excel.sas)

Importing an Excel Worksheet into SAS (commands=import_excel.sas) Imprting an Excel Wrksheet int SAS (cmmands=imprt_excel.sas) I. Preparing Excel Data fr a Statistics Package These instructins apply t setting up an Excel file fr SAS, SPSS, Stata, etc. Hw t Set up the

More information

Using the DOCUMENT Procedure to Expand the Output Flexibility of the Output Delivery System with Very Little Programming Effort

Using the DOCUMENT Procedure to Expand the Output Flexibility of the Output Delivery System with Very Little Programming Effort Paper 11864-2016 Using the DOCUMENT Prcedure t Expand the Output Flexibility f the Output Delivery System with Very Little Prgramming Effrt ABSTRACT Rger D. Muller, Ph.D., Data T Events Inc. The DOCUMENT

More information

Create Your Own Report Connector

Create Your Own Report Connector Create Yur Own Reprt Cnnectr Last Updated: 15-December-2009. The URS Installatin Guide dcuments hw t cmpile yur wn URS Reprt Cnnectr. This dcument prvides a guide t what yu need t create in yur cnnectr

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

Campuses that access the SFS nvision Windows-based client need to allow outbound traffic to:

Campuses that access the SFS nvision Windows-based client need to allow outbound traffic to: Summary This dcument is a guide intended t guide yu thrugh the prcess f installing and cnfiguring PepleTls 8.55.27 (r current versin) via Windws Remte Applicatin (App). Remte App allws the end user t run

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

Computer Science Programming Contest

Computer Science Programming Contest Team Member Requirements Cmputer Science Prgramming Cntest By Charltte Scrggs Frmer Cach and UIL CS C-Directr A prgramming team must have exactly three members If a cmputer science team has fur members,

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

Center School District. SMART Board Quick Reference

Center School District. SMART Board Quick Reference SMART Bard Quick Reference A few things t keep in mind... If yu can t find the remte, turn n the SMART Bard by pushing the stand by buttn n the prjectr. T pwer ff, push pwer buttn twice either n the remte

More information

In-Class Exercise. Hashing Used in: Hashing Algorithm

In-Class Exercise. Hashing Used in: Hashing Algorithm In-Class Exercise Hashing Used in: Encryptin fr authenticatin Hash a digital signature, get the value assciated with the digital signature,and bth are sent separately t receiver. The receiver then uses

More information