Introduction to Perl Programming: Summary of exercises
|
|
|
- Clifton Hill
- 9 years ago
- Views:
Transcription
1 Introduction to Perl Programming: Summary of exercises Thaddeus Aid Christopher Yau Sebastian Kelm Department of Statistics University of Oxford for the Oxford University IT Services April 17, 2013
2 2 A digital version of these notes, as well as a few data files, can be found on the course website. You will be referred to this URL whenever you need to obtain extra files to complete an exercise: If you cannot complete all the exercises during the allotted time, you may wish to finish them at home. If you run into trouble you cannot solve by yourself, you can contact the course teacher by . Please include the words IT Services Perl in the subject line. [email protected] The purpose of this document is to make finding the exercises easier. The exercises are spread through the course booklet and are gathered here for simplicity. EXERCISE 1: Hello World 1. Open a text editor (e.g. gedit). 2. Start a new text document. 3. Enter the source code for the Hello World program below: print "Hello World\n"; # prints "Hello World" to the screen 4. Save the file as first.pl. 5. Open a terminal window and change to the directory containing first.pl using the shell command cd. 6. Run the Hello World program by using the command perl first.pl. You should see the following output:
3 3 > perl first.pl Hello World EXERCISE 2: Numbers 1. Create a new text document and name it addnumbers.pl. 2. Enter the following code: my $x = 1; # assign the value 1 to variable $x my $y = 3; # assign the value 1 to variable $y my $z = $x + $y; # assign the sum of $x and $y to variable $z print "The first number is: $x\n"; # print the value of $x print "The second number is: $y\n"; # print the value of $y print "The sum is: $z\n"; # print the value of $z 3. Run the program in the terminal. You should see the following output: > perl addnumbers.pl The first number is: 1 The second number is: 3 The sum is: 4 4. Extend the program to calculate and print the difference, product and quotient of $x and $y. EXERCISE 3: Strings
4 4 1. Create a new text document and name it addstrings.pl. 2. Enter the source code below: my $x = "Jim"; my $y = "Hendrix"; print "My name is $x $y\n"; print 'My name is $x $y\n'; 3. Switch to the terminal and run the program. > perl addstrings.pl My name is Jim Hendrix. My name is $x $y\n 4. Create a new variable to store the string is a legend and print out all three strings. EXERCISE 4: Using Input 1. Write a Perl script to read in a string from the console and print: (a) The length of the string (b) The reverse of the string (c) the upper and lower case version of the string 2. Modify your script to accept two string inputs and prints the concatenation of the two strings separated by a space.
5 5 EXERCISE 5: Array functions 1. Create a new script with the following code: = ( ); # create an array of numbers 1-10 print "The array my $first_element = shift(@array); # remove the first element and store in first_element my $last_element = pop(@array); # remove the last element and store in last_element print "The first and last elements of the array are $first_element and $last_element\n"; push(@array, ( ) ); # add the numbers -5 to +5 to the array print "The array currently = sort$a <=> $b(@array); # sort the array numerically print "The sorted array = qw(cat dog rabbit turtle fox badger); # create a new array using qw print "@new_array\n"; 2. Create a new script and the following = qw( 99players b_squad a-team 1_Boy A-team B_squad 2_Boy);
6 6 3. Sort the array using the following sorting options: (a) Sort numerically in ascending = sort $a <=> (b) Sort numerically in descending order (same as before but with $a and $b = sort $b <=> (c) Sort alphabetically in a case-insensitive = sort lc $a cmp lc 4. Create a new script with the following = qw( The quick brown fox jumps over the lazy dog and runs away ); 5. Using appropriate array access and join functions construct the following strings and store these in a single variable and print to screen: The quick fox jumps over the dog The brown fox runs away The lazy dog runs The dog runs away quick The quick brown dog runs over the lazy fox 6. Create a 2d array of people: = (["Clark", "Kent"], ["Lois", "Lane"], ["Bruce", "Wayne"]); Use push to add Superman to Clark Kent s sub-array. Use pop to remove Bruce Wayne from the matrix. Use a directly indexed scalar add Reporter to the third element of Lois Lane s sub-array. Add a third sub-array with the values Jimmy, Olsen, Photographer. Print the resulting matrix to the screen.
7 7 Print only the last names to the screen. EXERCISE 6: If-else statements 1. Create a new text document and name it ifthenelse.pl. 2. Enter the source code below: my $x = 5.1; my $y = 5; if ( $x > $y ) print "x is greater than y\n"; else print "y is greater than x\n"; $x = 5.0; $y = 5.0; if ( $x > $y ) print "x is greater than y\n"; elsif ( $y > $x ) print "y is greater than x\n"; elsif ( $y == $x )
8 8 print "x is equal to y\n"; 3. Switch to the terminal and run the program. > perl ifthenelse.pl x is greater than y x is equal to y 4. Modify the program to accept the numbers entered by the user using <STDIN> and re-run the program to see the changes in the program behaviour. 5. Write a new program that computes the area of a circle with a radius that is specified by the user using <STDIN>. The area of a circle is π times the radius of the circle squared (π ). 6. Modify the program so that if radius is a negative number the program will print The radius of a circle must be a positive number". 7. Add a conditional statement to print: (a) This is a big circle if the area of the circle is greater than 100. (b) This is a small circle if the area of the circle is less than 100. EXERCISE 7: Nested and Compound If statements 1. Create a new text document and name it nestedif.pl. 2. Enter the source code below:
9 9 my $x = 5.1; my $y = 5.1; if ( $x > 5.0 ) if ( $y > 5.0 ) print "x and y are greater than 5\n"; if ( ( $x > 5.0 ) and ( $y > 5.0 ) ) print "x and y are greater than 5\n"; 3. Switch to the terminal and run the program: > perl nestedif.pl x and y are greater than 5 x and y are greater than 5 4. Modify the program to accept numbers from <STDIN> and re-run the program to see the changes in the program behaviour. 5. Using a combination of and, or and if statements or nested statements, write a script to print out the following statements under these salary/bonus scenarios: (a) Salary < , Bonus < : You are not a banker. (b) Salary > , Bonus < : bonus. You are banker with no (c) Salary > , Bonus > : You are banker with a big bonus. (d) Salary < , Bonus > : You won the lottery. (e) Salary or Bonus > : You are buying dinner tonight.
10 10 6. In Perl, we can use the =~ operator to perform pattern matching. The statement $x =~ /word/ is true if the variable x contains the phrase word. Using this pattern matching operator and conditional statements, write a case-insensitive test to see if an input string x contains the following text: Word to find Chris Bells Wonder Land Print this if found Found Chris! Ding dong! I was wondering about that too Air and Sea Test your code using the following strings: (a) Christmas Time (b) The bells are ringing in Wonderland (c) Stevie Wonder (d) The land of hope and glory (e) Wondering about your day EXERCISE 8: 1. Create a new text document and name it loops.pl. 2. Write a script that prints out the numbers 1980 to 2010 using a loop. 3. Modify your script to use a conditional statement and print out This is a new decade!" for years ending in nought. HINT: Use $year % 10 == 0 to test if a year is divisible by Use a while loop to count backwards from 10, print the numbers and print the line We have lift off! when the count reaches zero. 5. Create an array with the following strings as elements:
11 11 James Bond 007 Department of Statistics University of Oxford Fantastic 4 Use a loop to print The string x contains numbers if $x does contain numbers. Print the uppercase version of strings that do not contain numbers. HINT: The test $x =~ /[0-9]/ can be used to identify if x contains any (single digit) number from 0 to 9. EXERCISE 9: 1. Download the file fruit.csv from the course website: 2. Create a new text document called readfile.pl and enter the following code: my $infile = "fruit.csv"; open(fh, $infile) or die "Cannot open $infile\n"; # this bit of code reads (skips) the header line <FH>; while ( my $line = <FH> ) chomp($line);
12 12 = split(/,/, $line); # splits the line at commas my $fruit = $linedat[0]; my $quantity = $linedat[1]; my $unitprice = $linedat[2]; $unitprice = sprintf('%0.2f', $unitprice); # converts the unit price into 2 decimal places print "We have $quantity of $fruit at $unitprice pounds each\n"; close(fh); EXERCISE 10: 1. Create a new text document called writefile.pl and enter the following code: my $outfile = "myoutfile1.txt"; open(outfile, "> $outfile") or die "Cannot write to $outfile\n" ; print OUTFILE "This is my first file\n"; close(outfile); 2. Using a loop, add some extra code to print the numbers 1,.., 100 to the file.
13 13 3. Use conditional statements to print only odd numbers between 1 and 100 to the file. EXERCISE 11: 1. Create a new text document called myfilecache.pl and enter the following code: no strict 'refs'; use FileCache maxopen => 16; my $infile = "departments.csv"; # this is the file to read # open a file handle open(infile, $infile) or die "Cannot open $infile\n"; # skip the header line <INFILE>; # read one line at a time while ( my $line = <INFILE> ) chomp($line); # extract data ( my $staffid, my $firstname, my $surname, my $department, my $employmentstatus ) = split(/,/, $line); my $name = $firstname. " ". $surname;
14 14 print "$staffid\t$name\t$department\t$employmentstatus\ n"; # close file handle close(infile); 2. Using the cacheout function, extend this program to write a set of files, one for each department, which contain the Staff ID and Names for each person working in that Department. The output files should be named after the department they represent. 3. Modify your program to only include full-time employees (FT). EXERCISE 12: 1. Download the file animals.zip from the course website Extract its contents to your home directory. directory called animals with four files in it. This should create a 2. Use glob to find all the text files in the animals directory and store these in an array. 3. Create a single summary file containing a list of all the types of foxes, badgers and rabbits and their numbers. The summary file should have the following headers: with the data following underneath Species Type Number Fox Alopex 23 You will need to: (a) Check that each file is a text file.
15 15 (b) Create a file handle for each data file and read in the data from each file. (c) Create a file handle to a summary file and write the animal data to this file. 4. Write some code to delete the file called sweets.dat in the animals directory. WARNING! BE CAREFUL WHAT YOU DELETE WHEN DOING THIS! EXERCISE 13: 1. Using regular expressions, test whether a string has a valid IP address (IPv4) format. Note: IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255, separated by dots, e.g., Then using sub-string operations, verify that the address is valid. 2. Write a Perl program to read in an input file containing Name Surname" lines and produce a second file with the format Surname, Name" (note the comma after the surname). Use regular expressions to do the string conversion. 3. Write a Perl program to eliminate the blank lines from a text file, e.g. If the source file has the lines: Line 1 Line 2 Line 4 Line 6 Your program should modify this file to become:
16 16 Line 1 Line 2 Line 4 Line 5 Line 6 EXERCISE 14: 1. Download the file counties.csv from the course website: 2. Read the contents of the counties file using Perl. The file has the following format: FirstName Surname County Date of Birth Sopoline Carpenter [email protected] Northumberland 21/04/ Find the number of people born since the year Hint: you will need to do some string manipulation to extract the year from the Date of Birth fields. 4. Find the number of people living in each county. Hint: Use a hash table. EXERCISE 15: 1. Download the file cars.csv from the course website:
17 17 2. Create a new text document called hashtable.pl and enter the following code: my $infile = "cars.csv"; my %customertable = (); open(infile, $infile) or die "Cannot open $infile\n"; <INFILE>; while ( my $line = <INFILE> ) chomp($line); ( my $id, my $name, my $car, my $value) = split(/\t/, $line); $customertable$id = NAME => $name, CAR => $car, VALUE => $value, ; close(infile); foreach my $customer_id ( sort $a <=> $b keys(% customertable) ) my $customer_name = $customertable$customer_id->name; my $customer_car = $customertable$customer_id->car; my $car_value = $customertable$customer_id->value; print "Customer ID $customer_id: $customer_name owns a $customer_car which costs $car_value\n"; 3. Modify the code to exclude cars with values below 15, 000.
18 18 4. Add the following customer cars to the hash table: (a) , Joshua Rankin, MG, 34,000 (b) , Josephine Gould, Vauxhall, 4, Create a separate file for each make of car and write the customer details to each file. EXERCISE 16: 1. Create a new text document called subfunc.pl and enter the following code: foreach my $number (1.. 10) my $squarenumber = square($number); print "The square of $number is $squarenumber\n"; sub square my $ans = $_[0] * $_[0]; return $ans; 2. Add a new sub-routine which calculates the cube of the numbers and print out the results to screen. 3. Add a new sub-routine that calculates both the square and cube of the numbers and returns two variables. 4. Write a sub-routine that returns the maximum of two numbers and extend your script to test its correct functionality.
19 19 5. Write a sub-routine that calculates the area of a circle and its circumference when passed a radius and extend your script to test its correct functionality. 6. Download the file sales.zip and extract its contents: 7. Create a new text document called subfunc2.pl and enter the following code: = ( "files/north2009.txt", "files/south2009.txt", "files/east2009.txt", "files/west2009.txt" ); foreach my $file ) my $totalsales = readfile($file); sub readfile 8. Complete the sub-routine readfile to read the sales data for each of the regions in The sub-routine should return the total sales across all individuals working in that region. 9. Repeat for the 2010 files. 10. Have sales improved in 2010? EXERCISE 17:
20 20 1. Create a sub-routine that takes an array of numbers (passed by reference), finds all the unique numbers in the array and returns a sorted array (passed by reference) of those unique numbers, e.g. # an array of numbers = qw( ); # call to a sub-routine called uniquevalues my $unique_numbers_ref = uniquevalues(\@numbers); # print out array of unique values print "@$unique_numbers_ref\n"; should display the numbers Download the file cars.csv from the course website: 3. Create a new text document called customer.pl and enter the following code: my $infile = "cars.csv"; my %customertable = (); open(infile, $infile) or die "Cannot open $infile\n"; <INFILE>; while ( my $line = <INFILE> ) chomp($line); ( my $id, my $name, my $car, my $value) = split(/\t/, $line); $customertable$id = NAME => $name, CAR => $car, VALUE => $value, ; close(infile);
21 21 NOTE: You should re-use code from the previous chapter if you have already done this. 4. Write a sub-routine that takes a hash table as input (passed by reference) and returns an arrays (passed by reference) of all the unique types of car in the hash table, e.g. my $unique_cars_ref = uniquecars( \%customertable ); 5. Write a sub-routine that scans the hash table (passed by reference) and returns an array (passed by reference) of customer names whose cars greater than a value specified by a second input variable, e.g. my $customers_ref = findcars( \%customertable, $value ); 6. Write a sub-routine that accepts a string and hash table (passed by reference) as inputs. The sub-routine should search the hash table to find the individual with the name specified in the input string and return the car type and value as two scalars, e.g. ( my $car, my $value ) = findcustomer( $name, \% customertable );
Introduction to Perl Programming
Introduction to Perl Programming Oxford University Computing Services 2 Revision Information Version Date Author Changes made 1.0 09 Feb 2011 Christopher Yau Created 1.1 18 Apr 2011 Christopher Yau Minor
?<BACBC;@@A=2(?@?;@=2:;:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NGS data format NGS data format @SRR031028.1708655 GGATGATGGATGGATAGATAGATGAAGAGATGGATGGATGGGTGGGTGGTATGCAGCATACCTGAAGTGC BBBCB=ABBB@BA=?BABBBBA??B@BAAA>ABB;@5=@@@?8@:==99:465727:;41'.9>;933!4 @SRR031028.843803
Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl
First CGI Script and Perl Perl in a nutshell Prof. Rasley shebang line tells the operating system where the Perl interpreter is located necessary on UNIX comment line ignored by the Perl interpreter End
Python Lists and Loops
WEEK THREE Python Lists and Loops You ve made it to Week 3, well done! Most programs need to keep track of a list (or collection) of things (e.g. names) at one time or another, and this week we ll show
Learn Perl by Example - Perl Handbook for Beginners - Basics of Perl Scripting Language
Learn Perl by Example - Perl Handbook for Beginners - Basics of Perl Scripting Language www.freebsdonline.com Copyright 2006-2008 www.freebsdonline.com 2008/01/29 This course is about Perl Programming
Programming in Perl CSCI-2962 Final Exam
Rules and Information: Programming in Perl CSCI-2962 Final Exam 1. TURN OFF ALL CELULAR PHONES AND PAGERS! 2. Make sure you are seated at least one empty seat away from any other student. 3. Write your
PYTHON Basics http://hetland.org/writing/instant-hacking.html
CWCS Workshop May 2009 PYTHON Basics http://hetland.org/writing/instant-hacking.html Python is an easy to learn, modern, interpreted, object-oriented programming language. It was designed to be as simple
PHP Tutorial From beginner to master
PHP Tutorial From beginner to master PHP is a powerful tool for making dynamic and interactive Web pages. PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
Unit 7 The Number System: Multiplying and Dividing Integers
Unit 7 The Number System: Multiplying and Dividing Integers Introduction In this unit, students will multiply and divide integers, and multiply positive and negative fractions by integers. Students will
Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro
Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro, to your M: drive. To do the second part of the prelab, you will need to have available a database from that folder. Creating a new
Access Queries (Office 2003)
Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy
Positional Numbering System
APPENDIX B Positional Numbering System A positional numbering system uses a set of symbols. The value that each symbol represents, however, depends on its face value and its place value, the value associated
Downloading <Jumping PRO> from www.vola.fr-------------------------------------------- Page 2
Downloading from www.vola.fr-------------------------------------------- Page 2 Installation Process on your computer -------------------------------------------- Page 5 Launching
Advanced Programming with LEGO NXT MindStorms
Advanced Programming with LEGO NXT MindStorms Presented by Tom Bickford Executive Director Maine Robotics Advanced topics in MindStorms Loops Switches Nested Loops and Switches Data Wires Program view
Hands-On UNIX Exercise:
Hands-On UNIX Exercise: This exercise takes you around some of the features of the shell. Even if you don't need to use them all straight away, it's very useful to be aware of them and to know how to deal
I PUC - Computer Science. Practical s Syllabus. Contents
I PUC - Computer Science Practical s Syllabus Contents Topics 1 Overview Of a Computer 1.1 Introduction 1.2 Functional Components of a computer (Working of each unit) 1.3 Evolution Of Computers 1.4 Generations
Algebra 1: Basic Skills Packet Page 1 Name: Integers 1. 54 + 35 2. 18 ( 30) 3. 15 ( 4) 4. 623 432 5. 8 23 6. 882 14
Algebra 1: Basic Skills Packet Page 1 Name: Number Sense: Add, Subtract, Multiply or Divide without a Calculator Integers 1. 54 + 35 2. 18 ( 30) 3. 15 ( 4) 4. 623 432 5. 8 23 6. 882 14 Decimals 7. 43.21
Access 2003 Introduction to Queries
Access 2003 Introduction to Queries COPYRIGHT Copyright 1999 by EZ-REF Courseware, Laguna Beach, CA http://www.ezref.com/ All rights reserved. This publication, including the student manual, instructor's
Pseudo code Tutorial and Exercises Teacher s Version
Pseudo code Tutorial and Exercises Teacher s Version Pseudo-code is an informal way to express the design of a computer program or an algorithm in 1.45. The aim is to get the idea quickly and also easy
Creating and Using Databases with Microsoft Access
CHAPTER A Creating and Using Databases with Microsoft Access In this chapter, you will Use Access to explore a simple database Design and create a new database Create and use forms Create and use queries
Visual Logic Instructions and Assignments
Visual Logic Instructions and Assignments Visual Logic can be installed from the CD that accompanies our textbook. It is a nifty tool for creating program flowcharts, but that is only half of the story.
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print
grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print In the simplest terms, grep (global regular expression print) will search input
A LEVEL H446 COMPUTER SCIENCE. Code Challenges (1 20) August 2015
A LEVEL H446 COMPUTER SCIENCE Code Challenges (1 20) August 2015 We will inform centres about any changes to the specification. We will also publish changes on our website. The latest version of our specification
Microsoft Access Lesson 5: Structured Query Language (SQL)
Microsoft Access Lesson 5: Structured Query Language (SQL) Structured Query Language (pronounced S.Q.L. or sequel ) is a standard computing language for retrieving information from and manipulating databases.
6. Control Structures
- 35 - Control Structures: 6. Control Structures A program is usually not limited to a linear sequence of instructions. During its process it may bifurcate, repeat code or take decisions. For that purpose,
Computational Mathematics with Python
Boolean Arrays Classes Computational Mathematics with Python Basics Olivier Verdier and Claus Führer 2009-03-24 Olivier Verdier and Claus Führer Computational Mathematics with Python 2009-03-24 1 / 40
Session 7 Fractions and Decimals
Key Terms in This Session Session 7 Fractions and Decimals Previously Introduced prime number rational numbers New in This Session period repeating decimal terminating decimal Introduction In this session,
Creating Advanced Reports with the SAP Query Tool
CHAPTER Creating Advanced Reports with the SAP Query Tool In this chapter An Overview of the SAP Query Tool s Advanced Screens 86 Using the Advanced Screens of the SAP Query Tool 86 86 Chapter Creating
LabVIEW Day 6: Saving Files and Making Sub vis
LabVIEW Day 6: Saving Files and Making Sub vis Vern Lindberg You have written various vis that do computations, make 1D and 2D arrays, and plot graphs. In practice we also want to save that data. We will
Drupal Survey. Software Requirements Specification 1.0 29/10/2009. Chris Pryor Principal Project Manager
Software Requirements Specification 1.0 29/10/2009 Chris Pryor Principal Project Manager Software Requirements Specification Survey Module Revision History Date Description Author Comments 5/11/2009 Version
Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
Get post program 7 W.a.p. that Enter two numbers from user and do arithmetic operation
Program list for PHP SRNO DEFINITION LOGIC/HINT 1 W.a.p. to print message on the screen Basic program 2 W.a.p. to print variables on the screen Basic program 3 W.a.p. to print sum of two integers on the
Lab 4.4 Secret Messages: Indexing, Arrays, and Iteration
Lab 4.4 Secret Messages: Indexing, Arrays, and Iteration This JavaScript lab (the last of the series) focuses on indexing, arrays, and iteration, but it also provides another context for practicing with
UNIX, Shell Scripting and Perl Introduction
UNIX, Shell Scripting and Perl Introduction Bart Zeydel 2003 Some useful commands grep searches files for a string. Useful for looking for errors in CAD tool output files. Usage: grep error * (looks for
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005
BIGPOND ONLINE STORAGE USER GUIDE Issue 1.1.0-18 August 2005 PLEASE NOTE: The contents of this publication, and any associated documentation provided to you, must not be disclosed to any third party without
EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002
EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 Table of Contents Part I Creating a Pivot Table Excel Database......3 What is a Pivot Table...... 3 Creating Pivot Tables
Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
WebEx Meeting Center User Guide
WebEx Meeting Center User Guide For Hosts, Presenters, and Participants 8.17 Copyright 1997 2010 Cisco and/or its affiliates. All rights reserved. WEBEX, CISCO, Cisco WebEx, the CISCO logo, and the Cisco
PharmaSUG 2015 - Paper QT26
PharmaSUG 2015 - Paper QT26 Keyboard Macros - The most magical tool you may have never heard of - You will never program the same again (It's that amazing!) Steven Black, Agility-Clinical Inc., Carlsbad,
Using Proportions to Solve Percent Problems I
RP7-1 Using Proportions to Solve Percent Problems I Pages 46 48 Standards: 7.RP.A. Goals: Students will write equivalent statements for proportions by keeping track of the part and the whole, and by solving
Computational Mathematics with Python
Computational Mathematics with Python Basics Claus Führer, Jan Erik Solem, Olivier Verdier Spring 2010 Claus Führer, Jan Erik Solem, Olivier Verdier Computational Mathematics with Python Spring 2010 1
NF5-12 Flexibility with Equivalent Fractions and Pages 110 112
NF5- Flexibility with Equivalent Fractions and Pages 0 Lowest Terms STANDARDS preparation for 5.NF.A., 5.NF.A. Goals Students will equivalent fractions using division and reduce fractions to lowest terms.
Computational Mathematics with Python
Numerical Analysis, Lund University, 2011 1 Computational Mathematics with Python Chapter 1: Basics Numerical Analysis, Lund University Claus Führer, Jan Erik Solem, Olivier Verdier, Tony Stillfjord Spring
http://computernetworkingnotes.com/ccna-study-guide/basic-of-network-addressing.html
Subnetting is a process of dividing large network into the smaller networks based on layer 3 IP address. Every computer on network has an IP address that represent its location on network. Two version
Guidelines for Effective Data Migration
Guidelines for Effective Data Migration Applies to: SAP R/3. All releases. For more information, visit the ABAP homepage. Summary Data Migration is an important step in any SAP implementation projects.
Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2
Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................
Prime Factorization 0.1. Overcoming Math Anxiety
0.1 Prime Factorization 0.1 OBJECTIVES 1. Find the factors of a natural number 2. Determine whether a number is prime, composite, or neither 3. Find the prime factorization for a number 4. Find the GCF
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
1 Description of The Simpletron
Simulating The Simpletron Computer 50 points 1 Description of The Simpletron In this assignment you will write a program to simulate a fictional computer that we will call the Simpletron. As its name implies
HOW TO CREATE AND MERGE DATASETS IN SPSS
HOW TO CREATE AND MERGE DATASETS IN SPSS If the original datasets to be merged are large, the process may be slow and unwieldy. Therefore the preferred method for working on multiple sweeps of data is
Introduction to Python
WEEK ONE Introduction to Python Python is such a simple language to learn that we can throw away the manual and start with an example. Traditionally, the first program to write in any programming language
Informatica e Sistemi in Tempo Reale
Informatica e Sistemi in Tempo Reale Introduction to C programming Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa October 25, 2010 G. Lipari (Scuola Superiore Sant Anna)
Databases in Microsoft Access David M. Marcovitz, Ph.D.
Databases in Microsoft Access David M. Marcovitz, Ph.D. Introduction Schools have been using integrated programs, such as Microsoft Works and Claris/AppleWorks, for many years to fulfill word processing,
Automatic Generation of Time-lapse Animations
Automatic Generation of Time-lapse Animations Stephen B. Jenkins Institute for Aerospace Research National Research Council Ottawa, Canada Presented at YAPC::Canada Ottawa, Ontario May 2003 Abstract A
Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.
Unit 1 Number Sense In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. BLM Three Types of Percent Problems (p L-34) is a summary BLM for the material
Jet Data Manager 2012 User Guide
Jet Data Manager 2012 User Guide Welcome This documentation provides descriptions of the concepts and features of the Jet Data Manager and how to use with them. With the Jet Data Manager you can transform
NLP Programming Tutorial 0 - Programming Basics
NLP Programming Tutorial 0 - Programming Basics Graham Neubig Nara Institute of Science and Technology (NAIST) 1 About this Tutorial 14 parts, starting from easier topics Each time: During the tutorial:
JAVA - QUICK GUIDE. Java SE is freely available from the link Download Java. So you download a version based on your operating system.
http://www.tutorialspoint.com/java/java_quick_guide.htm JAVA - QUICK GUIDE Copyright tutorialspoint.com What is Java? Java is: Object Oriented Platform independent: Simple Secure Architectural- neutral
Big Data and Analytics by Seema Acharya and Subhashini Chellappan Copyright 2015, WILEY INDIA PVT. LTD. Introduction to Pig
Introduction to Pig Agenda What is Pig? Key Features of Pig The Anatomy of Pig Pig on Hadoop Pig Philosophy Pig Latin Overview Pig Latin Statements Pig Latin: Identifiers Pig Latin: Comments Data Types
Advanced BIAR Participant Guide
State & Local Government Solutions Medicaid Information Technology System (MITS) Advanced BIAR Participant Guide October 28, 2010 HP Enterprise Services Suite 100 50 West Town Street Columbus, OH 43215
Excel: Introduction to Formulas
Excel: Introduction to Formulas Table of Contents Formulas Arithmetic & Comparison Operators... 2 Text Concatenation... 2 Operator Precedence... 2 UPPER, LOWER, PROPER and TRIM... 3 & (Ampersand)... 4
Web Development using PHP (WD_PHP) Duration 1.5 months
Duration 1.5 months Our program is a practical knowledge oriented program aimed at learning the techniques of web development using PHP, HTML, CSS & JavaScript. It has some unique features which are as
EMC SourceOne Auditing and Reporting Version 7.0
EMC SourceOne Auditing and Reporting Version 7.0 Installation and Administration Guide 300-015-186 REV 01 EMC Corporation Corporate Headquarters: Hopkinton, MA 01748-9103 1-508-435-1000 www.emc.com Copyright
DATE PERIOD. Estimate the product of a decimal and a whole number by rounding the Estimation
A Multiplying Decimals by Whole Numbers (pages 135 138) When you multiply a decimal by a whole number, you can estimate to find where to put the decimal point in the product. You can also place the decimal
Introduction to Parallel Programming and MapReduce
Introduction to Parallel Programming and MapReduce Audience and Pre-Requisites This tutorial covers the basics of parallel programming and the MapReduce programming model. The pre-requisites are significant
Excel for Mac Text Functions
[Type here] Excel for Mac Text Functions HOW TO CLEAN UP TEXT IN A FLASH This document looks at some of the tools available in Excel 2008 and Excel 2011 for manipulating text. Last updated 16 th July 2015
Enterprise Asset Management System
Enterprise Asset Management System in the Agile Enterprise Asset Management System AgileAssets Inc. Agile Enterprise Asset Management System EAM, Version 1.2, 10/16/09. 2008 AgileAssets Inc. Copyrighted
Table of Contents. Event Management System Online Event Management System
Online Event Management System Table of Contents Introduction... 2 Who uses this system... 2 What you can do using this system... 2 Accessing the Online Event Management system... 2 Finding Helpful Information...
Introduction to Shell Programming
Introduction to Shell Programming what is shell programming? about cygwin review of basic UNIX TM pipelines of commands about shell scripts some new commands variables parameters and shift command substitution
Exercise 4 Learning Python language fundamentals
Exercise 4 Learning Python language fundamentals Work with numbers Python can be used as a powerful calculator. Practicing math calculations in Python will help you not only perform these tasks, but also
Chapter 1: Getting Started
Chapter 1: Getting Started Every journey begins with a single step, and in ours it's getting to the point where you can compile, link, run, and debug C++ programs. This depends on what operating system
Inteset Secure Lockdown ver. 2.0
Inteset Secure Lockdown ver. 2.0 for Windows XP, 7, 8, 10 Administrator Guide Table of Contents Administrative Tools and Procedures... 3 Automatic Password Generation... 3 Application Installation Guard
Microsoft Excel Tips & Tricks
Microsoft Excel Tips & Tricks Collaborative Programs Research & Evaluation TABLE OF CONTENTS Introduction page 2 Useful Functions page 2 Getting Started with Formulas page 2 Nested Formulas page 3 Copying
STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.
STATGRAPHICS Online Statistical Analysis and Data Visualization System Revised 6/21/2012 Copyright 2012 by StatPoint Technologies, Inc. All rights reserved. Table of Contents Introduction... 1 Chapter
Computer Programming In QBasic
Computer Programming In QBasic Name: Class ID. Computer# Introduction You've probably used computers to play games, and to write reports for school. It's a lot more fun to create your own games to play
Getting Started. Powerpay Version 4.1
Getting Started Powerpay Version 4.1 Contents Opening Powerpay... 5 Before you open Powerpay... 5 Opening Powerpay for the first time... 5 Log on to Powerpay for the first time... 6 Password restrictions
PIZZA! PIZZA! TEACHER S GUIDE and ANSWER KEY
PIZZA! PIZZA! TEACHER S GUIDE and ANSWER KEY The Student Handout is page 11. Give this page to students as a separate sheet. Area of Circles and Squares Circumference and Perimeters Volume of Cylinders
Command Scripts. 13.1 Running scripts: include and commands
13 Command Scripts You will probably find that your most intensive use of AMPL s command environment occurs during the initial development of a model, when the results are unfamiliar and changes are frequent.
Calc Guide Chapter 9 Data Analysis
Calc Guide Chapter 9 Data Analysis Using Scenarios, Goal Seek, Solver, others Copyright This document is Copyright 2007 2011 by its contributors as listed below. You may distribute it and/or modify it
Microsoft Windows PowerShell v2 For Administrators
Course 50414B: Microsoft Windows PowerShell v2 For Administrators Course Details Course Outline Module 1: Introduction to PowerShell the Basics This module explains how to install and configure PowerShell.
Microsoft Office. Mail Merge in Microsoft Word
Microsoft Office Mail Merge in Microsoft Word TABLE OF CONTENTS Microsoft Office... 1 Mail Merge in Microsoft Word... 1 CREATE THE SMS DATAFILE FOR EXPORT... 3 Add A Label Row To The Excel File... 3 Backup
User s Guide for the Texas Assessment Management System
User s Guide for the Texas Assessment Management System Version 8.3 Have a question? Contact Pearson s Austin Operations Center. Call 800-627-0225 for technical support Monday Friday, 7:30 am 5:30 pm (CT),
MATLAB Programming. Problem 1: Sequential
Division of Engineering Fundamentals, Copyright 1999 by J.C. Malzahn Kampe 1 / 21 MATLAB Programming When we use the phrase computer solution, it should be understood that a computer will only follow directions;
ChE-1800 H-2: Flowchart Diagrams (last updated January 13, 2013)
ChE-1800 H-2: Flowchart Diagrams (last updated January 13, 2013) This handout contains important information for the development of flowchart diagrams Common Symbols for Algorithms The first step before
Using Excel to create a student database
Using Excel to create a student database Excel can be used to create spreadsheets or very simple databases. The difference between a spreadsheet and a database A spreadsheet is used primarily to record
Like any function, the UDF can be as simple or as complex as you want. Let's start with an easy one...
Building Custom Functions About User Defined Functions Excel provides the user with a large collection of ready-made functions, more than enough to satisfy the average user. Many more can be added by installing
2874CD1EssentialSQL.qxd 6/25/01 3:06 PM Page 1 Essential SQL Copyright 2001 SYBEX, Inc., Alameda, CA www.sybex.com
Essential SQL 2 Essential SQL This bonus chapter is provided with Mastering Delphi 6. It is a basic introduction to SQL to accompany Chapter 14, Client/Server Programming. RDBMS packages are generally
CS 1133, LAB 2: FUNCTIONS AND TESTING http://www.cs.cornell.edu/courses/cs1133/2015fa/labs/lab02.pdf
CS 1133, LAB 2: FUNCTIONS AND TESTING http://www.cs.cornell.edu/courses/cs1133/2015fa/labs/lab02.pdf First Name: Last Name: NetID: The purpose of this lab is to help you to better understand functions:
Database Query 1: SQL Basics
Database Query 1: SQL Basics CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 1 Overview Using Structured Query Language (SQL) to get the data you want from relational databases Learning basic
DataPA OpenAnalytics End User Training
DataPA OpenAnalytics End User Training DataPA End User Training Lesson 1 Course Overview DataPA Chapter 1 Course Overview Introduction This course covers the skills required to use DataPA OpenAnalytics
