Similarly, example of memory address of array and hash are: ARRAY(0x1a31d44) and HASH(0x80f6c6c) respectively.

Size: px
Start display at page:

Download "Similarly, example of memory address of array and hash are: ARRAY(0x1a31d44) and HASH(0x80f6c6c) respectively."

Transcription

1 Lecture #9 What is reference? Perl Reference A Perl reference is a scalar value that holds the location of another value which could be scalar, arrays, hashes, or even a subroutine. In other words, a reference is a variable that points the memory address of another existing data; therefore, a reference is simply a pointer to something. In Perl, a reference is declared as a variable; however, its value can be a variable, array, hash, or subroutine prefixed with a backslash. $reference = \$data The term memory of a computer is actually a series of memory registers, each register typically has one byte (or two bytes) in size, and each register is assigned a unique address. A memory address is a unique identifier used by a device or CPU for data tracking. Memory addresses are normally written not as one but as two hex numbers. For example, 0x9FFF:000F. However, in Perl, a memory address of a scalar is expressed as: A sample is: SCALAR(0xnnnnnnnn) SCALAR(0x1a9359c) Similarly, example of memory address of array and hash are: ARRAY(0x1a31d44) and HASH(0x80f6c6c) respectively. By the way, in Perl, programmers can create a reference to an anonymous array or hash by using square brackets for an array and braces for a hash: $x = ['apple', 'banana', 'orange']; #array $y = PA => "Pennsylvania", CA => "California", WA => "Washington" ; #hash Reference for variables A Perl variable is string (or name) that represents an area of memory which stores scalar value. In the following example, $x is a Perl variable with an initial value 5, $p is a reference that will be assigned the memory address where the value 5 is stored. That s being said $p will store the value of a memory address. $x = 15; # variable $p = \$x; # reference print $x. "<br>". $p; 252

2 The following is a sample output. According to this output, 5 is stored in a memory address 0xla9359c. 15 SCALAR(0x1a9359c) The following is another example that illustrates how to reference to a string variable. $name = "Jennifer Lopez"; # variable $p = \$name; # reference print $name. "<br>". $p; Interestingly, $$p (must have two $ signs) means the value stored in the reference $p In other words, $$p can retrieve the actual value stored in the memory address pointed by $p. Therefore, $$p equals to $x. In Perl, using $$reference to retrieve the actual value is known as dereferencing. De-referencing returns the value a reference points to the location. $x = 15; # variable $p = \$x; # reference The output looks: print $x. "<br>". $$p; #deference By the same token, the output of the following sample is a two-fold of Jennifer Lopez. $name = "Jennifer Lopez"; # variable $p = \$name; # reference print $name. "<br>". $$p; Another way to de-reference a reference is: $$p. 253

3 $x = "apple"; $p = \$x; print $$p; Reference for arrays An array is a series of objects all of which are the same size and type. Each object in an array is called an element. The following is the syntax to reference an array in Perl, where $reference is a variable must represent an existing Perl array. Be sure to declare the array before creating the reference. $reference = \@arrayname The following demonstrates how to reference an array. The variable $p is the reference of x array. The value of $p is the memory address that stores the x = (4, 7, 3, 5, 8, 9); # array $p = \@x; # reference $size for ($i = 0; $i < $size; $i++) print $x[$i]. "<br>"; (must is equivalent they both represent an array. In other In the following, the instructor to when finding the size The instructor also uses $$p[$i] to replace $x[$i] because elements in array can be denoted as $x[$i]. As discussed previously, $$p is equivalent to = (4, 7, 3, 5, 8, 9); # array $p = \@x; # reference $size for ($i = 0; $i < $size; $i++) print $$p[$i]. "<br>"; 254

4 The following is another example with a string array. It also demonstrates how to to retrieve the elements of = ("apple", "orange", "banana"); # array $p = \@x; # reference foreach (@$p) print $_. "<br>"; The following is another example that demonstrates how to use the quote word function, qw(), to generate a list of words. It also uses the $$p[$i] = qw(apple orange banana); print "<br>"; $p = \@x; print "\$p[0]: ", $$p[0], "<br>"; print "\$p[1]: ", $$p[1], "<br>"; print "\$p[2]: ", $$p[2], "<br>"; Instead of the $$p[$i] format, $p->[$i] is another option. The following demonstrates how to use the $p->[$i] = qw(apple orange banana); print "<br>"; $p = \@x; print $p->[0], "<br>"; print $p->[1], "<br>"; print $p->[2], "<br>"; 255

5 Another way to de-reference a reference The following is an = (4, 7, 3, 5, 8, 9); # array $p = \@x; # reference = ("apple", "orange", "banana"); # array $p = \@x; # reference "<br>"; References apply to two dimensional arrays. The following is a sample code that demonstrates how a two-dimensional array = ( [1, 2, 3, 4], ["one", "two", "three", "four"], ['ichi', 'nii', 'san', 'shi'], ); $s for ($i = 0; $i < $s; $i++) $s1 for ($j = 0; $j < $s1; $j++) print $x[$i][$j]. "<br>"; The following example creates a reference, $p, and uses it to represent the array. Again $$p is equivalent to = ( [1, 2, 3, 4], ["one", "two", "three", "four"], ['ichi', 'nii', 'san', 'shi'], ); $p = \@x; $s 256

6 for ($i = 0; $i < $s; $i++) $s1 for ($j = 0; $j < $s1; $j++) print $$p[$i][$j]. "<br>"; Here is another = localtime(); # assign date time values to dt array $p = \@dt; foreach (@$p) print $_. " "; Reference for hashes As discussed in a previous lecture, a Perl hash is special type of array whose elements must consist of a key and a value. The following is the syntax to reference a hash in Perl, where $reference is a variable must represent an existing Perl array. Be sure to declare the hash before creating the reference. $reference = \@hashname The following illustrates how to reference to a Perl hash named month. The variable $p is the reference of month hash. The value of $p is the memory address that stores the month hash. 01 is the key of Jan, and Jan is the value. The month hash has 12 elements. #hash %month = ( "01", "Jan", "02", "Feb", "03", "Mar", "04", "Apr", "05", "May", "06", "Jun", "07", "Jul", "08", "Aug", "09", "Sep", "10", "Oct", "11", "Nov", "12", "Dec"); $p = \%month; # reference foreach (keys %month) print $_. " : ". $month$_. "<br>"; 257

7 In the following example, the instructor uses %$p to de-reference the month hash. Since each element of the month has can be denoted as $monthkey, the instructor uses $$pkey instead. #hash %month = ( "01", "Jan", "02", "Feb", "03", "Mar", "04", "Apr", "05", "May", "06", "Jun", "07", "Jul", "08", "Aug", "09", "Sep", "10", "Oct", "11", "Nov", "12", "Dec"); $p = \%month; # reference foreach (keys %$p) print $_. " : ". $$p$_. "<br>"; The following example demonstrates how to reference a hash whose elements are defined with the => operator. #hash %month = ( "01"=>"Jan", "02"=>"Feb", "03"=>"Mar", "04"=>"Apr", "05"=>"May", "06"=>"Jun", "07"=>"Jul", "08"=>"Aug", "09"=>"Sep", "10"=>"Oct", "11"=>"Nov", "12"=>"Dec" ); $p = \%month; # = = values(%$p); for ($i=0; $i<@k; $i++) print "$k[$i] : $v[$i]", br; Another way to de-reference a reference is: %$p. The following is an example. %x = ("CA", "California", "PA", "Pennsylvania", 258

8 "WA", "Washington"); #hash $p = \%x; # reference print %$p, "<br>"; %x = (TX=>"Texas", MI=>"Michigan", OH=>"Ohio"); # hash $p = \%x; # reference print %$p, "<br>"; Reference for subroutines A Perl subroutine or function is a group of statements that together perform a task. Perl allows programmers to create a reference of subroutines. The syntax to reference a subroutine is: $reference = \&subroutinename; The following example contains a subroutine named print_it. The instructor creates a reference, $p, to represent the print_it subroutine. The instructor uses &$p() to call the subroutine by the reference. sub print_it print "I am a subroutine\n" ; $p = \&print_it; &$p(); The following is another example that illustrates how to call a named subroutine with its reference. The syntax to call a named subroutine by its reference is: $reference->(). sub hello print "Hello world!"; $p = \&hello; # reference $p->(); # Call the subroutine via its reference In the following example, the anonymous subroutine can calculate the sum of n, where n is passed by the reference $p->(n). By the way, the value of n is given by the user through the HTML form. 259

9 print "<form action='$envscript_name' method='post'>"; print "Enter an integer: <input type='text' name='n'>"; print "<input type='submit' value='submit'>"; print "</form>"; if (param) $n = param('n'); $p = sub $sum = 0; for ($i=0; $i <= $_[0]; $i++) $sum += $i; return $sum; ; print $p->($n); The following is another example that compares the &$p() and $p->() formats. sub findmax if ($_[0] >= $_[1]) return $_[0]; else return $_[i]; ; $p = \&findmax; print &$p(9, 3). "<br>". $p->(6, 4); Perl programmers can also create a reference to an anonymous subroutine. 260

10 $p = sub print "I am a subroutine\n"; ; &$p(); The following uses the -> operator to call a anonymous subroutine by its reference with a parameter, $p. $p = sub print shift; ; $p->("hello!"); The following is an example that passes an array to a subroutine. The subroutine then returns the sum of the elements in the = (1, 2, 3, 4, 5); print getsum(@x); sub getsum $sum = 0; foreach (@_) $sum += $_; return $sum; The following illustrates how the instructor (a) changes the getsum subroutine to an anonymous subroutine, (b) creates a reference $p to represent the anonymous subroutine, and (c) then uses &$p() to represent the = (1, 2, 3, 4, 5); $p = sub 261

11 $sum = 0; foreach (@_) $sum += $_; return $sum; ; print &$p(@x). "<br>"; References are particularly handy for passing in arguments to subroutines, or returning values from them. sub add_number $sum = 0; foreach (@_) $sum += $_; return = (4, 17, 14, 23); $p = add_number(@n); The following is an example which produces a reference to a function by preceding that function name with \& and to dereference that reference you simply need to prefix reference variable using ampersand &. # Function definition sub PrintHash foreach (@_) print "Item : $_<br>"; %x = ('fn' => 'Jennifer', 'ln' => 'Lopez', 'age' => 19); 262

12 # Create a reference to above function. $p = \&PrintHash; # Function call using reference. &$p(%x); In the following example, the shift keyword retrieves the first element of the array and returns it. sub add_number return = (4, 17, 14, 23); $p = add_number(@n); Circular References A circular reference occurs when two references contain a reference to each other. You have to be careful while creating references otherwise a circular reference can lead to memory leaks. Following is an example: $x = 100; $x = \$x; print "Value of \"x\" is : ", $$x, "\n"; When above program is executed, it produces the following result. Note that the data type is REF. Value of "x" is : REF(0x1a7256c) Similarly, the following is the string version. $x = 'apple'; $x = \$x; print "Value of \"x\" is : ", $$x, "\n"; 263

13 The ref() function The ref() function returns a string that indicates the type of reference. In other words, programmers can write a subroutine that takes a different action based on the type of reference it received. sub mysub # subroutine print "This is a subroutine."; ; $p1 = \&mysub; #variable $x = "This is a variable."; $p2 = = ("apple", "orange", "grape"); #array $p3 = \@y; %z = (CA=>"California", PA=>"Pennsylvania"); #hash $p4 =\%z; print ref($p1). "<br>". ref($p2). "<br>". ref($p3). "<br>". ref($p4); A sample output looks: CODE SCALAR ARRAY HASH The following table compares the principles of variables, arrays, and hashes as well as how conference works with them in Perl. Item \ Data Type Variable Array Hash Example $x = = ("apple", "orange"); %x = (a=>"apple", o=>"orange"); Reference $p = \$x; $p = \@x; $p = \%x; De-reference $$p or %$p or %$p Accessing element $$p $$p[0] or $p->[0] $p'a' or $p->'a' The following example reviews how to reference to handle variable, array, and hash in Perl. $x = "apple"; 264

14 $p1 = \$x; print $$p1. = ("apple", "orange"); $p2 = \@y; print $$p2[0]. "<br>". $p2->[1]. "<br>"; %z = (a=>"apple", o=>"orange"); $p3 = \%z; print $$p3'a'. "<br>". $p3->'o'. "<br>"; Review Question 1. Given the following code, which is a possible output? $x = ['apple', 'banana']; print $x; A. ARRAY(0x1a81d64) B. applebanana C. 'apple' 'banana' D. apple banana 2. Given the following code, which is a possible output? $x = PA => "Pennsylvania", CA => "California", ; print $x; A. HASH(0x1ac1d54) B. PA => "Pennsylvania", CA => "California", C. PAPennsylvaniaCACalifornia D. $x 3. Given the following code, which is a possible output? $x = 15; $p = \$x; print $p; A. ARRAY(0x1a81d64) B. HASH(0x1a81d64) C. SCALAR(0x1a81d64) D. CODE(0x1a81d64) 4. Given the following code, which is a possible output? A. $x B. 15 C. $p D. $$p $x = 15; $p = \$x; print $$p; 5. Given the following code, which is a possible = (4, 7, 3, 5, 8, 9); $p = \@x; $size 265

15 for ($i = 0; $i < $size; $i++) print $x[$i]. " "; A. (4, 7, 3, 5, 8, 9) B. $p C D. $x[$i] 6. Given the following code, which is a possible = ("apple", "orange", "banana"); $p = \@x; foreach (@$p) print $_. " "; A. ("apple", "orange", "banana") B. "appleorangebanana" C. "apple orange banana" D. apple orange banana 7. Given the following code, which is a possible = qw(apple orange banana); $p = \@x; print $$p[0]; A. apple B. apple orange banana C. $apple D. $$[0] 8. Given the following code, which is a possible output? %x = ('01'=>"one", '02'=>"two"); $p=\%x; print %$p; A. onetwo B. 01one02two C D. '01'=>"one", '02'=>"two" 9. Given the following code, which is a possible output? $p = sub print "Perl Programmming"; ; &$p(); A. sub print "Perl Programmming"; ; B. &$p() C. Perl Programmming D. $p 10. Given the following code, which is a possible output? 266

16 sub add_number return = (4, 17, 14, 23); $p = add_number(@n); print $p; A. 4 B C. (4, 17, 14, 23) D. $p 267

17 Lab #9 Perl Reference Preparation #1: Running the server and create default database 1. Insert the USB flash drive. Record the drive name:. 2. Close all the applications that may cause conflicts with XAMPP such as Skype IIS, Wampserver, VMware, etc. 3. Insert the USB that contains XAMPP. Determine the drive name (such as F:\ ). 4. Change to the X:\xampp\ directory (where X must be the correct drive name) to find the setup_xampp.bat and then execute it. You should see: ###################################################################### # ApacheFriends XAMPP setup win32 Version # # # # Copyright (C) Apachefriends # # # # Authors: Kay Vogelgesang (kvo@apachefriends.org) # # Carsten Wiedmann (webmaster@wiedmann-online.de) # ###################################################################### 5. Read the option below the above lines. You should see one of the following: Sorry, but... nothing to do! Press any key to continue... Do you want to refresh the XAMPP installation? 1) Refresh now! x) Exit 6. If you got the Sorry, but... option, skip to the next step to launch Apache with XAMPP Control Panel; otherwise, press 1 and then [Enter]. If re-configuration succeeds, you should see the following message. XAMPP is refreshing now... Refreshing all paths in config files... Configure XAMPP with awk for Windows_NT ###### Have fun with ApacheFriends XAMPP! ###### Press any key to continue In the X:\xampp\ directory, click the xampp-control.exe file to launch XAMPP control panel. 8. Click the Start button next to Apache to start the Apache server. Learning Activity #1: 268

18 1. In the X:\xampp\htdocs\myperl directory, use Notepad to create a new script file named lab9_1.pl with the following lines. Be sure to replace X with the correct drive name. $x = 15; # variable $p = \$x; # reference print $x. "<br>". $p; $name = "Jennifer Lopez"; # variable $p = \$name; # reference print $name. "<br>". $p; $x = 15; # variable $p = \$x; # reference print $x. "<br>". $$p; #deference $name = "Jennifer Lopez"; # variable $p = \$name; # reference print $name. "<br>". $$p; $x = "apple"; $p = \$x; print $$p; 2. Use Web browser to visit (where localhost is your computer), you should see the following window. Notice that you need to use if you modified the port number to resolve the port conflicts (as specified in Lab #1). The output looks: 269

19 3. Download the assignment template, and rename it to lab9.doc if necessary. Capture a screen shot similar to the above figure and paste it to a Word document named lab9.doc (or lab9.docx). Learning Activity #2: 1. In the X:\xampp\htdocs\myperl directory, use Notepad to create a new script file named lab9_2.pl with the following = (4, 7, 3, 5, 8, 9); # array $p = \@x; # reference $size for ($i = 0; $i < $size; $i++) print $x[$i]. = (4, 7, 3, 5, 8, 9); # array $p = \@x; # reference $size for ($i = 0; $i < $size; $i++) print $$p[$i]. = ("apple", "orange", "banana"); # array $p = \@x; # reference foreach (@$p) print $_. = qw(apple orange banana); print "<br>"; $p = \@x; print "\$p[0]: ", $$p[0], "<br>"; print "\$p[1]: ", $$p[1], "<br>"; print "\$p[2]: ", $$p[2], "<br>"; 270

20 @x = qw(apple orange banana); print "<br>"; $p = \@x; print $p->[0], "<br>"; print $p->[1], "<br>"; print $p->[2], "<br>"; 2. Test the program. A sample output looks: 3. Capture a screen shot similar to the above figure and paste it to a Word document named lab9.doc (or lab9.docx). Learning Activity #3: 1. In the X:\xampp\htdocs\myperl directory, use Notepad to create a new script file named lab9_3.pl with the following = (4, 7, 3, 5, 8, 9); # array $p = \@x; # reference = ("apple", "orange", "banana"); # array $p = \@x; # reference = ( [1, 2, 3, 4], ["one", "two", "three", "four"], ['ichi', 'nii', 'san', 'shi'], ); $s 271

21 for ($i = 0; $i < $s; $i++) $s1 for ($j = 0; $j < $s1; $j++) print $x[$i][$j]. = ( [1, 2, 3, 4], ["one", "two", "three", "four"], ['ichi', 'nii', 'san', 'shi'], ); $p = \@x; $s for ($i = 0; $i < $s; $i++) $s1 for ($j = 0; $j < $s1; $j++) print $$p[$i][$j]. "<br>"; 2. Test the program. A sample output looks: 3. Capture a screen shot similar to the above figure and paste it to a Word document named lab9.doc (or lab9.docx). Learning Activity #4: 1. In the X:\xampp\htdocs\myperl directory, use Notepad to create a new script file named lab9_4.pl with the following lines: 272

22 #hash %month = ( "01", "Jan", "02", "Feb", "03", "Mar", "04", "Apr", "05", "May", "06", "Jun", "07", "Jul", "08", "Aug", "09", "Sep", "10", "Oct", "11", "Nov", "12", "Dec"); $p = \%month; # reference foreach (keys %$p) print $_. " : ". $$p$_. "<br>"; %x = ("CA", "California", "PA", "Pennsylvania", "WA", "Washington"); #hash $p = \%x; # reference print %$p, "<br>"; %x = (TX=>"Texas", MI=>"Michigan", OH=>"Ohio"); # hash $p = \%x; # reference print %$p, "<br>"; sub findmax if ($_[0] >= $_[1]) return $_[0]; else return $_[i]; ; $p = \&findmax; print &$p(9, 3). "<br>". $p->(6, 4); sub add_number $sum = 0; foreach (@_) $sum += $_; 273

23 return = (4, 17, 14, 23); $p = add_number(@n); 2. Test the program. A sample output looks: 3. Capture a screen shot similar to the above figure and paste it to a Word document named lab9.doc (or lab9.docx). Learning Activity #5: 1. In the X:\xampp\htdocs\myperl directory, use Notepad to create a new script file named lab9_5.pl with the following lines: sub mysub # subroutine print "This is a subroutine."; ; $p1 = \&mysub; #variable $x = "This is a variable."; $p2 = = ("apple", "orange", "grape"); #array $p3 = \@y; %z = (CA=>"California", PA=>"Pennsylvania"); #hash 274

24 $p4 =\%z; print ref($p1). "<br>". ref($p2). "<br>". ref($p3). "<br>". ref($p4); 2. Test the program. A sample output looks: 3. Capture a screen shot similar to the above figure and paste it to a Word document named lab9.doc (or lab9.docx). Submittal 1. Complete all the 5 learning activities in this lab. 2. Create a.zip file named lab9.zip containing ONLY the following script files. lab9_1.pl lab9_2.pl lab9_3.pl lab9_4.pl lab9_5.pl lab9.doc (or.docx) [you may be given zero point if this word document is missing] 3. Upload the zipped file to Question 11 of Assignment 9 as the response. Programming Exercise #09 1. Use Notepad to create a new file named ex09.pl with the following lines in it (be sure to replace YourFullNameHere with the correct one): ## File name: ex09.pl ## Student: YourFullNameHere 2. Next to the above two lines, create an anonymous subroutine that can calculate the sum of n 2, where n is passed by a reference, $p. Additionally, create an HTML form that will let the user enter an integer. The integer is then processed by param() function as n to be passed to $p. A sample output looks: 3. Download the programming exercise template, and rename it to ex09.doc. Capture a screen shot similar to the above figure and paste it to a Word document named ex09.doc (or.docx). 4. Create a.zip file named ex09.zip with the following two files. Upload the.zip file for grading. ex09.pl ex09.doc (or.docx) [You may be given zero point if this Word document is missing] and 275

25 Grading Criteria 1. You code must fully comply with the requirement to earn full credits. No partial credit is given. 276

#!"X:\xampp\perl\bin\perl.exe" use CGI qw(:standard); print header, start_html;

#!X:\xampp\perl\bin\perl.exe use CGI qw(:standard); print header, start_html; Lecture #8 Introduction Declaring a subroutine Subroutines In terms of programming, a subroutine is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then

More information

The following is a sample statement. Perl statements end in a semi-colon (;):

The following is a sample statement. Perl statements end in a semi-colon (;): Lecture #2 Introduction Perl Syntaxes A Perl script consists of a sequence of declarations and statements which run from the top to the bottom; therefore, the scripting requires basic understanding of

More information

#using <System.dll> #using <System.Windows.Forms.dll> using namespace System; using namespace System::Windows::Forms;

#using <System.dll> #using <System.Windows.Forms.dll> using namespace System; using namespace System::Windows::Forms; Lecture #13 Introduction Exception Handling The C++ language provides built-in support for handling anomalous situations, known as exceptions, which may occur during the execution of your program. Exceptions

More information

The Movies table PartID Title Actor Type Cost... A1027 Around the world in 80 days

The Movies table PartID Title Actor Type Cost... A1027 Around the world in 80 days Lecture #12 Concept of data-driven web sites Database With most of the services on the web being powered by web database applications, it becomes important for any web developer to know how bring together

More information

Calling predefined. functions (methods) #using <System.dll> #using <System.dll> #using <System.Windows.Forms.dll>

Calling predefined. functions (methods) #using <System.dll> #using <System.dll> #using <System.Windows.Forms.dll> Lecture #5 Introduction Visual C++ Functions A C++ function is a collection of statements that is called and executed as a single unit in order to perform a task. Frequently, programmers organize statements

More information

Table 1: Typed vs. Generic Codes Scenario Typed Generic Analogy Cash Only Multiply Payment Options. Customers must pay cash. No cash, no deal.

Table 1: Typed vs. Generic Codes Scenario Typed Generic Analogy Cash Only Multiply Payment Options. Customers must pay cash. No cash, no deal. Lecture #15 Overview Generics in Visual C++ C++ and all its descendent languages, such as Visual C++, are typed languages. The term typed means that objects of a program must be declared with a data type,

More information

History. used in early Mac development notable systems in Pascal Skype TeX embedded systems

History. used in early Mac development notable systems in Pascal Skype TeX embedded systems Overview The Pascal Programming Language (with material from tutorialspoint.com) Background & History Features Hello, world! General Syntax Variables/Data Types Operators Conditional Statements Functions

More information

#using <System.dll> #using <System.Windows.Forms.dll>

#using <System.dll> #using <System.Windows.Forms.dll> Lecture #8 Introduction.NET Framework Regular Expression A regular expression is a sequence of characters, each has a predefined symbolic meaning, to specify a pattern or a format of data. Social Security

More information

INTRODUCTION TO GAMS 1 Daene C. McKinney CE385D Water Resources Planning and Management The University of Texas at Austin

INTRODUCTION TO GAMS 1 Daene C. McKinney CE385D Water Resources Planning and Management The University of Texas at Austin INTRODUCTION TO GAMS 1 Daene C. McKinney CE385D Water Resources Planning and Management The University of Texas at Austin Table of Contents 1. Introduction... 2 2. GAMS Installation... 2 3. GAMS Operation...

More information

Operating System x86 x64 ARM Windows XP Windows Server 2003 Windows Vista Windows Server 2008 Windows 7 Windows Server 2012 R2 Windows 8 Windows 10

Operating System x86 x64 ARM Windows XP Windows Server 2003 Windows Vista Windows Server 2008 Windows 7 Windows Server 2012 R2 Windows 8 Windows 10 Lecture #1 What is C++? What are Visual C++ and Visual Studio? Introducing Visual C++ C++ is a general-purpose programming language created in 1983 by Bjarne Stroustrup. C++ is an enhanced version of the

More information

Lecture 05 I/O statements Printf, Scanf Simple statements, Compound statements

Lecture 05 I/O statements Printf, Scanf Simple statements, Compound statements Programming, Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 05 I/O statements Printf, Scanf Simple

More information

Term Object-Oriented Paradigm Real-life example Abstraction Class declaration, creation, and definition

Term Object-Oriented Paradigm Real-life example Abstraction Class declaration, creation, and definition Lecture #6 What is a class and what is an object? Object-Oriented Programming Assuming that the instructor found a new breed of bear and decided to name it Kuma. In an email, the instructor described what

More information

accessmodifier [static] returntype functionname(parameters) { } private string getdatetime() { } public void getdatetime() { }

accessmodifier [static] returntype functionname(parameters) { } private string getdatetime() { } public void getdatetime() { } Lecture #6 User-defined functions User-Defined Functions and Delegates All C# programs must have a method called Main(), which is the starting point for the program. Programmers can also add other methods,

More information

More Perl. CS174 Chris Pollett Oct 25, 2006.

More Perl. CS174 Chris Pollett Oct 25, 2006. More Perl CS174 Chris Pollett Oct 25, 2006. Outline Loops Arrays Hashes Functions Selection Redux Last day we learned about how if-else works in Perl. Perl does not have a switch statement Like Javascript,

More information

Classnote for COMS6100

Classnote for COMS6100 Classnote for COMS6100 Yiting Wang 3 November, 2016 Today we learn about subroutines, references, anonymous and file I/O in Perl. 1 Subroutines in Perl First of all, we review the subroutines that we had

More information

EECS2301. Example. Testing 3/22/2017. Linux/Unix Part 3. for SCRIPT in /path/to/scripts/dir/* do if [ -f $SCRIPT -a -x $SCRIPT ] then $SCRIPT fi done

EECS2301. Example. Testing 3/22/2017. Linux/Unix Part 3. for SCRIPT in /path/to/scripts/dir/* do if [ -f $SCRIPT -a -x $SCRIPT ] then $SCRIPT fi done Warning: These notes are not complete, it is a Skelton that will be modified/add-to in the class. If you want to us them for studying, either attend the class or get the completed notes from someone who

More information

This report is based on sampled data. Jun 1 Jul 6 Aug 10 Sep 14 Oct 19 Nov 23 Dec 28 Feb 1 Mar 8 Apr 12 May 17 Ju

This report is based on sampled data. Jun 1 Jul 6 Aug 10 Sep 14 Oct 19 Nov 23 Dec 28 Feb 1 Mar 8 Apr 12 May 17 Ju 0 - Total Traffic Content View Query This report is based on sampled data. Jun 1, 2009 - Jun 25, 2010 Comparing to: Site 300 Unique Pageviews 300 150 150 0 0 Jun 1 Jul 6 Aug 10 Sep 14 Oct 19 Nov 23 Dec

More information

HPE Security Data Security. HPE SecureData. Product Lifecycle Status. End of Support Dates. Date: April 20, 2017 Version:

HPE Security Data Security. HPE SecureData. Product Lifecycle Status. End of Support Dates. Date: April 20, 2017 Version: HPE Security Data Security HPE SecureData Product Lifecycle Status End of Support Dates Date: April 20, 2017 Version: 1704-1 Table of Contents Table of Contents... 2 Introduction... 3 HPE SecureData Appliance...

More information

CMIS 102 Hands-On Lab

CMIS 102 Hands-On Lab CMIS 10 Hands-On Lab Week 8 Overview This hands-on lab allows you to follow and experiment with the critical steps of developing a program including the program description, analysis, test plan, and implementation

More information

CSE 341 Section Handout #6 Cheat Sheet

CSE 341 Section Handout #6 Cheat Sheet Cheat Sheet Types numbers: integers (3, 802), reals (3.4), rationals (3/4), complex (2+3.4i) symbols: x, y, hello, r2d2 booleans: #t, #f strings: "hello", "how are you?" lists: (list 3 4 5) (list 98.5

More information

Programming for Engineers Structures, Unions

Programming for Engineers Structures, Unions Programming for Engineers Structures, Unions ICEN 200 Spring 2017 Prof. Dola Saha 1 Structure Ø Collections of related variables under one name. Ø Variables of may be of different data types. Ø struct

More information

CS Programming I: Arrays

CS Programming I: Arrays CS 200 - Programming I: Arrays Marc Renault Department of Computer Sciences University of Wisconsin Madison Fall 2017 TopHat Sec 3 (PM) Join Code: 719946 TopHat Sec 4 (AM) Join Code: 891624 Array Basics

More information

Asks for clarification of whether a GOP must communicate to a TOP that a generator is in manual mode (no AVR) during start up or shut down.

Asks for clarification of whether a GOP must communicate to a TOP that a generator is in manual mode (no AVR) during start up or shut down. # Name Duration 1 Project 2011-INT-02 Interpretation of VAR-002 for Constellation Power Gen 185 days Jan Feb Mar Apr May Jun Jul Aug Sep O 2012 2 Start Date for this Plan 0 days 3 A - ASSEMBLE SDT 6 days

More information

COMP519 Web Programming Lecture 27: PHP (Part 3) Handouts

COMP519 Web Programming Lecture 27: PHP (Part 3) Handouts COMP519 Web Programming Lecture 27: PHP (Part 3) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool Control

More information

Section 1.2: What is a Function? y = 4x

Section 1.2: What is a Function? y = 4x Section 1.2: What is a Function? y = 4x y is the dependent variable because it depends on what x is. x is the independent variable because any value can be chosen to replace x. Domain: a set of values

More information

What you learned so far. Loops & Arrays efficiency for statements while statements. Assignment Plan. Required Reading. Objective 2/3/2018

What you learned so far. Loops & Arrays efficiency for statements while statements. Assignment Plan. Required Reading. Objective 2/3/2018 Loops & Arrays efficiency for statements while statements Hye-Chung Kum Population Informatics Research Group http://pinformatics.org/ License: Data Science in the Health Domain by Hye-Chung Kum is licensed

More information

CS113: Lecture 3. Topics: Variables. Data types. Arithmetic and Bitwise Operators. Order of Evaluation

CS113: Lecture 3. Topics: Variables. Data types. Arithmetic and Bitwise Operators. Order of Evaluation CS113: Lecture 3 Topics: Variables Data types Arithmetic and Bitwise Operators Order of Evaluation 1 Variables Names of variables: Composed of letters, digits, and the underscore ( ) character. (NO spaces;

More information

Annex A to the DVD-R Disc and DVD-RW Disc Patent License Agreement Essential Sony Patents relevant to DVD-RW Disc

Annex A to the DVD-R Disc and DVD-RW Disc Patent License Agreement Essential Sony Patents relevant to DVD-RW Disc Annex A to the DVD-R Disc and DVD-RW Disc Patent License Agreement Essential Sony Patents relevant to DVD-RW Disc AT-EP S95P0391 1103087.1 09-Feb-01 1126619 8/16 Modulation AT-EP S95P0391 1120568.9 29-Aug-01

More information

= Apache + MySQL + PHP + PERL

= Apache + MySQL + PHP + PERL Lecture #1 Introduction Introduction to Perl Perl is acronym of Practical Extraction and Report Language. It is a scripting language developed by Larry Wall in the late 1987 as a Unix-based report language.

More information

Car. Sedan Truck Pickup SUV

Car. Sedan Truck Pickup SUV Lecture #7 Introduction Inheritance, Composition, and Polymorphism In terms of object-oriented programming, inheritance is the ability that enables new classes to use the properties and methods of existing

More information

Arrays and Pointers. CSE 2031 Fall November 11, 2013

Arrays and Pointers. CSE 2031 Fall November 11, 2013 Arrays and Pointers CSE 2031 Fall 2013 November 11, 2013 1 Arrays l Grouping of data of the same type. l Loops commonly used for manipulation. l Programmers set array sizes explicitly. 2 Arrays: Example

More information

Syntax and Variables

Syntax and Variables Syntax and Variables What the Compiler needs to understand your program, and managing data 1 Pre-Processing Any line that starts with # is a pre-processor directive Pre-processor consumes that entire line

More information

Omega Engineering Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Omega Engineering Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Omega Engineering Software Archive - FTP Site Statistics Property Value FTP Server ftp.omega.com Description Omega Engineering Software Archive Country United States Scan Date 14/Apr/2015 Total Dirs 460

More information

Types, Operators and Expressions

Types, Operators and Expressions Types, Operators and Expressions EECS 2031 18 September 2017 1 Variable Names (2.1) l Combinations of letters, numbers, and underscore character ( _ ) that do not start with a number; are not a keyword.

More information

ICT PROFESSIONAL MICROSOFT OFFICE SCHEDULE MIDRAND

ICT PROFESSIONAL MICROSOFT OFFICE SCHEDULE MIDRAND ICT PROFESSIONAL MICROSOFT OFFICE SCHEDULE MIDRAND BYTES PEOPLE SOLUTIONS Bytes Business Park 241 3rd Road Halfway Gardens Midrand Tel: +27 (11) 205-7000 Fax: +27 (11) 205-7110 Email: gauteng.sales@bytes.co.za

More information

COMP322 - Introduction to C++ Lecture 01 - Introduction

COMP322 - Introduction to C++ Lecture 01 - Introduction COMP322 - Introduction to C++ Lecture 01 - Introduction Robert D. Vincent School of Computer Science 6 January 2010 What this course is Crash course in C++ Only 14 lectures Single-credit course What this

More information

Lecture 10: Boolean Expressions

Lecture 10: Boolean Expressions Lecture 10: Boolean Expressions CS1068+ Introductory Programming in Python Dr Kieran T. Herley Department of Computer Science University College Cork 2017-2018 KH (12/10/17) Lecture 10: Boolean Expressions

More information

ECSE 321 Assignment 2

ECSE 321 Assignment 2 ECSE 321 Assignment 2 Instructions: This assignment is worth a total of 40 marks. The assignment is due by noon (12pm) on Friday, April 5th 2013. The preferred method of submission is to submit a written

More information

All King County Summary Report

All King County Summary Report September, 2016 MTD MARKET UPDATE Data Current Through: September, 2016 18,000 16,000 14,000 12,000 10,000 8,000 6,000 4,000 2,000 0 Active, Pending, & Months Supply of Inventory 15,438 14,537 6.6 6.7

More information

Lecture 7 PHP Basics. Web Engineering CC 552

Lecture 7 PHP Basics. Web Engineering CC 552 Lecture 7 PHP Basics Web Engineering CC 552 Overview n Overview of PHP n Syntactic Characteristics n Primitives n Output n Control statements n Arrays n Functions n WampServer Origins and uses of PHP n

More information

Tracking the Internet s BGP Table

Tracking the Internet s BGP Table Tracking the Internet s BGP Table Geoff Huston Telstra December 2000 Methodology! The BGP table monitor uses a router at the boundary of AS1221 which has a default-free ebgp routing table 1. Capture the

More information

Arrays and Pointers. Arrays. Arrays: Example. Arrays: Definition and Access. Arrays Stored in Memory. Initialization. EECS 2031 Fall 2014.

Arrays and Pointers. Arrays. Arrays: Example. Arrays: Definition and Access. Arrays Stored in Memory. Initialization. EECS 2031 Fall 2014. Arrays Arrays and Pointers l Grouping of data of the same type. l Loops commonly used for manipulation. l Programmers set array sizes explicitly. EECS 2031 Fall 2014 November 11, 2013 1 2 Arrays: Example

More information

High Performance Computing

High Performance Computing High Performance Computing MPI and C-Language Seminars 2009 Photo Credit: NOAA (IBM Hardware) High Performance Computing - Seminar Plan Seminar Plan for Weeks 1-5 Week 1 - Introduction, Data Types, Control

More information

Operator overloading: extra examples

Operator overloading: extra examples Operator overloading: extra examples CS319: Scientific Computing (with C++) Niall Madden Week 8: some extra examples, to supplement what was covered in class 1 Eg 1: Points in the (x, y)-plane Overloading

More information

Mpoli Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Mpoli Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Mpoli Archive - FTP Site Statistics Property Value FTP Server ftp.mpoli.fi Description Mpoli Archive Country Finland Scan Date 01/Nov/2015 Total Dirs 52,408 Total Files 311,725 Total Data 28.53 GB Top

More information

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #44. Multidimensional Array and pointers

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #44. Multidimensional Array and pointers Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #44 Multidimensional Array and pointers In this video, we will look at the relation between Multi-dimensional

More information

Lecture 14. Dynamic Memory Allocation

Lecture 14. Dynamic Memory Allocation Copyright 1996 David R. Hanson Computer Science 126, Fall 1996 14-1 Lecture 14. Dynamic Memory Allocation The number of variables and their sizes are determined at compile-time before a program runs /*

More information

Laboratory 0 Week 0 Advanced Structured Programming An Introduction to Visual Studio and C++

Laboratory 0 Week 0 Advanced Structured Programming An Introduction to Visual Studio and C++ Laboratory 0 Week 0 Advanced Structured Programming An Introduction to Visual Studio and C++ 0.1 Introduction This is a session to familiarize working with the Visual Studio development environment. It

More information

Seattle (NWMLS Areas: 140, 380, 385, 390, 700, 701, 705, 710) Summary

Seattle (NWMLS Areas: 140, 380, 385, 390, 700, 701, 705, 710) Summary September, 2016 MTD MARKET UPDATE Data Current Through: September, 2016 (NWMLS Areas: 140, 380, 385, 390,, 701, 705, 710) Summary Active, Pending, & Months Supply of Inventory 5,000 4,500 4,000 3,500 4,091

More information

Seattle (NWMLS Areas: 140, 380, 385, 390, 700, 701, 705, 710) Summary

Seattle (NWMLS Areas: 140, 380, 385, 390, 700, 701, 705, 710) Summary October, 2016 MTD MARKET UPDATE Data Current Through: October, 2016 (NWMLS Areas: 140, 380, 385, 390,, 701, 705, 710) Summary Active, Pending, & Months Supply of Inventory 4,500 4,000 3,500 4,197 4,128

More information

APPENDIX E2 ADMINISTRATIVE DATA RECORD #2

APPENDIX E2 ADMINISTRATIVE DATA RECORD #2 APPENDIX E2 ADMINISTRATIVE DATA RECORD #2 Position (s} Document Identifier 1-3 PAB, PBB, or PEB PIIN 4-16 SPIIN 17-22 Must agree with the related P,_A Discount Terms 23-37 May be blank in the PBB an&peb

More information

Seattle (NWMLS Areas: 140, 380, 385, 390, 700, 701, 705, 710) Summary

Seattle (NWMLS Areas: 140, 380, 385, 390, 700, 701, 705, 710) Summary November, 2016 MTD MARKET UPDATE Data Current Through: November, 2016 (NWMLS Areas: 140, 380, 385, 390,, 701, 705, 710) Summary 4,000 3,500 3,000 2,500 2,000 1,500 1,000 500 0 Active, Pending, & Months

More information

CSCI 4152/6509 Natural Language Processing Lecture 6: Regular Expressions; Text Processing in Perl

CSCI 4152/6509 Natural Language Processing Lecture 6: Regular Expressions; Text Processing in Perl Lecture 6 p.1 Faculty of Computer Science, Dalhousie University CSCI 4152/6509 Natural Language Processing Lecture 6: Regular Expressions; Text Processing in Perl 18-Jan-2019 Location: LSC Psychology P5260

More information

(Refer Slide Time: 01:12)

(Refer Slide Time: 01:12) Internet Technology Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture No #22 PERL Part II We continue with our discussion on the Perl

More information

Getting started with C++ (Part 2)

Getting started with C++ (Part 2) Getting started with C++ (Part 2) CS427: Elements of Software Engineering Lecture 2.2 11am, 16 Jan 2012 CS427 Getting started with C++ (Part 2) 1/22 Outline 1 Recall from last week... 2 Recall: Output

More information

Programming Languages. Function-Closure Idioms. Adapted from Dan Grossman's PL class, U. of Washington

Programming Languages. Function-Closure Idioms. Adapted from Dan Grossman's PL class, U. of Washington Programming Languages Function-Closure Idioms Adapted from Dan Grossman's PL class, U. of Washington More idioms We know the rule for lexical scope and function closures Now what is it good for A partial

More information

However, it is necessary to note that other non-visual-c++ compilers may use:

However, it is necessary to note that other non-visual-c++ compilers may use: Lecture #2 Anatomy of a C++ console program C++ Programming Basics Prior to the rise of GUI (graphical user interface) operating systems, such as Microsoft Windows, C++ was mainly used to create console

More information

CSCI 4152/6509 Natural Language Processing. Perl Tutorial CSCI 4152/6509. CSCI 4152/6509, Perl Tutorial 1

CSCI 4152/6509 Natural Language Processing. Perl Tutorial CSCI 4152/6509. CSCI 4152/6509, Perl Tutorial 1 CSCI 4152/6509 Natural Language Processing Perl Tutorial CSCI 4152/6509 Vlado Kešelj CSCI 4152/6509, Perl Tutorial 1 created in 1987 by Larry Wall About Perl interpreted language, with just-in-time semi-compilation

More information

Programming in Java Prof. Debasis Samanta Department of Computer Science Engineering Indian Institute of Technology, Kharagpur

Programming in Java Prof. Debasis Samanta Department of Computer Science Engineering Indian Institute of Technology, Kharagpur Programming in Java Prof. Debasis Samanta Department of Computer Science Engineering Indian Institute of Technology, Kharagpur Lecture 04 Demonstration 1 So, we have learned about how to run Java programs

More information

Software and Programming 1

Software and Programming 1 Software and Programming 1 Lab 1: Introduction, HelloWorld Program and use of the Debugger 17 January 2019 SP1-Lab1-2018-19.pptx Tobi Brodie (tobi@dcs.bbk.ac.uk) 1 Module Information Lectures: Afternoon

More information

software.sci.utah.edu (Select Visitors)

software.sci.utah.edu (Select Visitors) software.sci.utah.edu (Select Visitors) Web Log Analysis Yearly Report 2002 Report Range: 02/01/2002 00:00:0-12/31/2002 23:59:59 www.webtrends.com Table of Contents Top Visitors...3 Top Visitors Over Time...5

More information

File Handling in C. EECS 2031 Fall October 27, 2014

File Handling in C. EECS 2031 Fall October 27, 2014 File Handling in C EECS 2031 Fall 2014 October 27, 2014 1 Reading from and writing to files in C l stdio.h contains several functions that allow us to read from and write to files l Their names typically

More information

Perl Library Functions

Perl Library Functions Perl Library Functions Perl has literally hundreds of functions for all kinds of purposes: file manipulation, database access, network programming, etc. etc. It has an especially rich collection of functions

More information

HPE Aruba. Course Training Year 2017 By IT Green

HPE Aruba. Course Training Year 2017 By IT Green WLAN Design and Implementation The ClearPass Access Management System (BYOD) Airwave Fundamental Basic Monitor Aruba Networks HPE Aruba. Course Training Year 2017 By IT Green Course Training No. Course

More information

Perl Scripting. Students Will Learn. Course Description. Duration: 4 Days. Price: $2295

Perl Scripting. Students Will Learn. Course Description. Duration: 4 Days. Price: $2295 Perl Scripting Duration: 4 Days Price: $2295 Discounts: We offer multiple discount options. Click here for more info. Delivery Options: Attend face-to-face in the classroom, remote-live or on-demand streaming.

More information

IKS Service GmbH - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

IKS Service GmbH - FTP Site Statistics. Top 20 Directories Sorted by Disk Space IKS Service GmbH - FTP Site Statistics Property Value FTP Server ftp.iks-jena.de Description IKS Service GmbH Country Germany Scan Date 20/Nov/2015 Total Dirs 5,112 Total Files 8,741 Total Data 1.44 GB

More information

Ampliación de Bases de Datos

Ampliación de Bases de Datos 1. Introduction to In this course, we are going to use: Apache web server PHP installed as a module for Apache Database management system MySQL and the web application PHPMyAdmin to administrate it. It

More information

Arrays and Pointers (part 2) Be extra careful with pointers!

Arrays and Pointers (part 2) Be extra careful with pointers! Arrays and Pointers (part 2) EECS 2031 22 October 2017 1 Be extra careful with pointers! Common errors: l Overruns and underruns Occurs when you reference a memory beyond what you allocated. l Uninitialized

More information

COMP284 Scripting Languages Lecture 11: PHP (Part 3) Handouts

COMP284 Scripting Languages Lecture 11: PHP (Part 3) Handouts COMP284 Scripting Languages Lecture 11: PHP (Part 3) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool

More information

Types, Operators and Expressions

Types, Operators and Expressions Types, Operators and Expressions CSE 2031 Fall 2011 9/11/2011 5:24 PM 1 Variable Names (2.1) Combinations of letters, numbers, and underscore character ( _ ) that do not start with a number; are not a

More information

Monthly SEO Report. Example Client 16 November 2012 Scott Lawson. Date. Prepared by

Monthly SEO Report. Example Client 16 November 2012 Scott Lawson. Date. Prepared by Date Monthly SEO Report Prepared by Example Client 16 November 212 Scott Lawson Contents Thanks for using TrackPal s automated SEO and Analytics reporting template. Below is a brief explanation of the

More information

SYSC 2006 C Winter 2012

SYSC 2006 C Winter 2012 SYSC 2006 C Winter 2012 Pointers and Arrays Copyright D. Bailey, Systems and Computer Engineering, Carleton University updated Sept. 21, 2011, Oct.18, 2011,Oct. 28, 2011, Feb. 25, 2011 Memory Organization

More information

COMS 3101 Programming Languages: Perl. Lecture 2

COMS 3101 Programming Languages: Perl. Lecture 2 COMS 3101 Programming Languages: Perl Lecture 2 Fall 2013 Instructor: Ilia Vovsha http://www.cs.columbia.edu/~vovsha/coms3101/perl Lecture Outline Control Flow (continued) Input / Output Subroutines Concepts:

More information

Examples of Using the ARGV Array. Loop Control Operators. Next Operator. Last Operator. Perl has three loop control operators.

Examples of Using the ARGV Array. Loop Control Operators. Next Operator. Last Operator. Perl has three loop control operators. Examples of Using the ARGV Array # mimics the Unix echo utility foreach (@ARGV) { print $_ ; print \n ; # count the number of command line arguments $i = 0; foreach (@ARGV) { $i++; print The number of

More information

Dynamic memory allocation (malloc)

Dynamic memory allocation (malloc) 1 Plan for today Quick review of previous lecture Array of pointers Command line arguments Dynamic memory allocation (malloc) Structures (Ch 6) Input and Output (Ch 7) 1 Pointers K&R Ch 5 Basics: Declaration

More information

BLM2031 Structured Programming. Zeyneb KURT

BLM2031 Structured Programming. Zeyneb KURT BLM2031 Structured Programming Zeyneb KURT 1 Contact Contact info office : D-219 e-mail zeynebkurt@gmail.com, zeyneb@ce.yildiz.edu.tr When to contact e-mail first, take an appointment What to expect help

More information

Scripting Languages. Diana Trandabăț

Scripting Languages. Diana Trandabăț Scripting Languages Diana Trandabăț Master in Computational Linguistics - 1 st year 2017-2018 Today s lecture What is Perl? How to install Perl? How to write Perl progams? How to run a Perl program? perl

More information

Indian Institute of Technology Kharagpur. PERL Part II. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Indian Institute of Technology Kharagpur. PERL Part II. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T. Indian Institute of Technology Kharagpur PERL Part II Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T. Kharagpur, INDIA Lecture 22: PERL Part II On completion, the student will be able

More information

CpSc 1111 Lab 4 Part a Flow Control, Branching, and Formatting

CpSc 1111 Lab 4 Part a Flow Control, Branching, and Formatting CpSc 1111 Lab 4 Part a Flow Control, Branching, and Formatting Your factors.c and multtable.c files are due by Wednesday, 11:59 pm, to be submitted on the SoC handin page at http://handin.cs.clemson.edu.

More information

Using References to Create Complex Structures. The array and hash composers

Using References to Create Complex Structures. The array and hash composers Using References to Create Complex Structures The array and hash composers Copyright 2006 2009 Stewart Weiss Anonymous array composer You can create a hard reference to an anonymous array using square

More information

More Binary Search Trees AVL Trees. CS300 Data Structures (Fall 2013)

More Binary Search Trees AVL Trees. CS300 Data Structures (Fall 2013) More Binary Search Trees AVL Trees bstdelete if (key not found) return else if (either subtree is empty) { delete the node replacing the parents link with the ptr to the nonempty subtree or NULL if both

More information

More BSTs & AVL Trees bstdelete

More BSTs & AVL Trees bstdelete More BSTs & AVL Trees bstdelete if (key not found) return else if (either subtree is empty) { delete the node replacing the parents link with the ptr to the nonempty subtree or NULL if both subtrees are

More information

Sand Pit Utilization

Sand Pit Utilization Sand Pit Utilization A construction company obtains sand, fine gravel, and coarse gravel from three different sand pits. The pits have different average compositions for the three types of raw materials

More information

Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel

Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel Introduction: PHP (Hypertext Preprocessor) was invented by Rasmus Lerdorf in 1994. First it was known as Personal Home Page. Later

More information

Backschues Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Backschues Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Property Value FTP Server ftp.backschues.net Description Backschues Archive Country Germany Scan Date 13/Apr/2014 Total Dirs 467 Total Files 1,623 Total Data 6.1 Top 20 Directories Sorted by Disk Space

More information

University of California - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

University of California - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Property Value FTP Server ftp.icsi.berkeley.edu Description University of California Country United States Scan Date 15/Jun/2015 Total Dirs 591 Total Files 12,510 Total Data 10.83 GB Top 20 Directories

More information

COURSE LISTING. Courses Listed. Training for Database & Technology with Modeling in SAP HANA. 20 November 2017 (12:10 GMT) Beginner.

COURSE LISTING. Courses Listed. Training for Database & Technology with Modeling in SAP HANA. 20 November 2017 (12:10 GMT) Beginner. Training for Database & Technology with Modeling in SAP HANA Courses Listed Beginner HA100 - SAP HANA Introduction Advanced HA300 - SAP HANA Certification Exam C_HANAIMP_13 - SAP Certified Application

More information

Excel Functions & Tables

Excel Functions & Tables Excel Functions & Tables SPRING 2016 Spring 2016 CS130 - EXCEL FUNCTIONS & TABLES 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course

More information

Opera Web Browser Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Opera Web Browser Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Property Value FTP Server ftp.opera.com Description Opera Web Browser Archive Country United States Scan Date 04/Nov/2015 Total Dirs 1,557 Total Files 2,211 Total Data 43.83 GB Top 20 Directories Sorted

More information

Lecture 12. PHP. cp476 PHP

Lecture 12. PHP. cp476 PHP Lecture 12. PHP 1. Origins of PHP 2. Overview of PHP 3. General Syntactic Characteristics 4. Primitives, Operations, and Expressions 5. Control Statements 6. Arrays 7. User-Defined Functions 8. Objects

More information

HISTORY OF TESTBEST CHANGES

HISTORY OF TESTBEST CHANGES HISTORY OF TESTBEST CHANGES ========== 8 OCTOBER 2012 v3.0.2.8 ========== The CCNA-Security test bank has been updated (5 sim questions at the end). Corrections are made to Windows 7 exam 70-680, and 133

More information

AVM Networks - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

AVM Networks - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Property Value FTP Server ftp.avm.de Description AVM Networks Country Germany Scan Date 12/May/2014 Total Dirs 2,056 Total Files 2,698 Total Data 39.66 GB Top 20 Directories Sorted by Disk Space Name Dirs

More information

GWDG Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

GWDG Software Archive - FTP Site Statistics. Top 20 Directories Sorted by Disk Space GWDG Software Archive - FTP Site Statistics Property Value FTP Server ftp5.gwdg.de Description GWDG Software Archive Country Germany Scan Date 18/Jan/2016 Total Dirs 1,068,408 Total Files 30,248,505 Total

More information

Undergraduate Admission File

Undergraduate Admission File Undergraduate Admission File June 13, 2007 Information Resources and Communications Office of the President University of California Overview Population The Undergraduate Admission File contains data on

More information

CS313D: ADVANCED PROGRAMMING LANGUAGE

CS313D: ADVANCED PROGRAMMING LANGUAGE CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science Department Lecture 3: C# language basics Lecture Contents 2 C# basics Conditions Loops Methods Arrays Dr. Amal Khalifa, Spr 2015 3 Conditions and

More information

Quatius Corporation - FTP Site Statistics. Top 20 Directories Sorted by Disk Space

Quatius Corporation - FTP Site Statistics. Top 20 Directories Sorted by Disk Space Property Value FTP Server ftp.quatius.com.au Description Quatius Corporation Country Australia Scan Date 03/Sep/2015 Total Dirs 133 Total Files 771 Total Data 9.61 GB Top 20 Directories Sorted by Disk

More information

typedef int Array[10]; String name; Array ages;

typedef int Array[10]; String name; Array ages; Morteza Noferesti The C language provides a facility called typedef for creating synonyms for previously defined data type names. For example, the declaration: typedef int Length; Length a, b, len ; Length

More information

CS 1110 Prelim 1 March 7th, 2013

CS 1110 Prelim 1 March 7th, 2013 Last Name: First Name: Cornell NetID, all caps: Circle your lab: Tu 12:20 Tu 1:25 Tu 2:30 Tu 3:35 W 12:20 W 1:25 W 2:30 W 3:35 CS 1110 Prelim 1 March 7th, 2013 It is a violation of the Academic Integrity

More information

CS : Programming for Non-Majors, Fall 2018 Programming Project #5: Big Statistics Due by 10:20am Wednesday November

CS : Programming for Non-Majors, Fall 2018 Programming Project #5: Big Statistics Due by 10:20am Wednesday November CS 1313 010: Programming for Non-Majors, Fall 2018 Programming Project #5: Big Statistics Due by 10:20am Wednesday November 7 2018 This fifth programming project will give you experience writing programs

More information

FREQUENTLY ASKED QUESTIONS

FREQUENTLY ASKED QUESTIONS DISTRICT 7030 WEBSITE FREQUENTLY ASKED QUESTIONS NB: THIS WILL BE REGULARLY UPDATED FOR YOUR INFORMATION. 1. This website works better with the following browsers: Internet Explorer (IE) and Google Chrome.

More information