+ All Categories
Home > Documents > CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for...

CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for...

Date post: 28-Sep-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
111
CSci 127: Introduction to Computer Science hunter.cuny.edu/csci CSci 127 (Hunter) Lecture 7 10 March 2020 1 / 48
Transcript
Page 1: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

CSci 127: Introduction to Computer Science

hunter.cuny.edu/csci

CSci 127 (Hunter) Lecture 7 10 March 2020 1 / 48

Page 2: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Announcements

Advising:

I Emely Peguero, department advisorI Hunter North 1090F Monday –

Wednesdays 9:00am-5:00pmI [email protected]

CS Survey:I Brian CampbellI Hunter Alumnus, class of 2019I Software Engineer at Seamless

CSci 127 (Hunter) Lecture 7 10 March 2020 2 / 48

Page 3: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Announcements

Advising:

I Emely Peguero, department advisorI Hunter North 1090F Monday –

Wednesdays 9:00am-5:00pmI [email protected]

CS Survey:I Brian CampbellI Hunter Alumnus, class of 2019I Software Engineer at Seamless

CSci 127 (Hunter) Lecture 7 10 March 2020 2 / 48

Page 4: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Today’s Topics

Recap: Slicing & Images

Introduction to Functions

NYC Open Data

CS Survey

CSci 127 (Hunter) Lecture 7 10 March 2020 3 / 48

Page 5: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Today’s Topics

Recap: Slicing & Images

Introduction to Functions

NYC Open Data

CS Survey

CSci 127 (Hunter) Lecture 7 10 March 2020 4 / 48

Page 6: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

Crop an image to select the top quarter (upper left corner)

CSci 127 (Hunter) Lecture 7 10 March 2020 5 / 48

Page 7: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

CSci 127 (Hunter) Lecture 7 10 March 2020 6 / 48

Page 8: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

CSci 127 (Hunter) Lecture 7 10 March 2020 7 / 48

Page 9: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

0 width

height

width/20

height/2

CSci 127 (Hunter) Lecture 7 10 March 2020 8 / 48

Page 10: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

0 width

height

width/20

height/2

How would you select the lower left corner?img2 = img[height//2:, :width//2]

How would you select the upper right corner?img2 = img[:height//2, width//2:]

How would you select the lower right corner?img2 = img[height//2:, width//2:]

CSci 127 (Hunter) Lecture 7 10 March 2020 9 / 48

Page 11: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

0 width

height

width/20

height/2

How would you select the lower left corner?

img2 = img[height//2:, :width//2]

How would you select the upper right corner?img2 = img[:height//2, width//2:]

How would you select the lower right corner?img2 = img[height//2:, width//2:]

CSci 127 (Hunter) Lecture 7 10 March 2020 9 / 48

Page 12: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

0 width

height

width/20

height/2

How would you select the lower left corner?img2 = img[height//2:, :width//2]

How would you select the upper right corner?img2 = img[:height//2, width//2:]

How would you select the lower right corner?img2 = img[height//2:, width//2:]

CSci 127 (Hunter) Lecture 7 10 March 2020 9 / 48

Page 13: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

0 width

height

width/20

height/2

How would you select the lower left corner?img2 = img[height//2:, :width//2]

How would you select the upper right corner?

img2 = img[:height//2, width//2:]

How would you select the lower right corner?img2 = img[height//2:, width//2:]

CSci 127 (Hunter) Lecture 7 10 March 2020 9 / 48

Page 14: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

0 width

height

width/20

height/2

How would you select the lower left corner?img2 = img[height//2:, :width//2]

How would you select the upper right corner?img2 = img[:height//2, width//2:]

How would you select the lower right corner?img2 = img[height//2:, width//2:]

CSci 127 (Hunter) Lecture 7 10 March 2020 9 / 48

Page 15: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

0 width

height

width/20

height/2

How would you select the lower left corner?img2 = img[height//2:, :width//2]

How would you select the upper right corner?img2 = img[:height//2, width//2:]

How would you select the lower right corner?

img2 = img[height//2:, width//2:]

CSci 127 (Hunter) Lecture 7 10 March 2020 9 / 48

Page 16: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Challenge: Cropping Images

0 width

height

width/20

height/2

How would you select the lower left corner?img2 = img[height//2:, :width//2]

How would you select the upper right corner?img2 = img[:height//2, width//2:]

How would you select the lower right corner?img2 = img[height//2:, width//2:]

CSci 127 (Hunter) Lecture 7 10 March 2020 9 / 48

Page 17: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Today’s Topics

Recap: Slicing & Images

Introduction to Functions

NYC Open Data

CS Survey

CSci 127 (Hunter) Lecture 7 10 March 2020 10 / 48

Page 18: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Functions

Functions are a way to break code into pieces,that can be easily reused.

Many languages require that all code must beorganized with functions.

The opening function is often called main()

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 11 / 48

Page 19: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Functions

Functions are a way to break code into pieces,that can be easily reused.

Many languages require that all code must beorganized with functions.

The opening function is often called main()

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 11 / 48

Page 20: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Functions

Functions are a way to break code into pieces,that can be easily reused.

Many languages require that all code must beorganized with functions.

The opening function is often called main()

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 11 / 48

Page 21: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Functions

Functions are a way to break code into pieces,that can be easily reused.

Many languages require that all code must beorganized with functions.

The opening function is often called main()

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:

Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 11 / 48

Page 22: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Functions

Functions are a way to break code into pieces,that can be easily reused.

Many languages require that all code must beorganized with functions.

The opening function is often called main()

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 11 / 48

Page 23: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Functions

Functions are a way to break code into pieces,that can be easily reused.

Many languages require that all code must beorganized with functions.

The opening function is often called main()

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,

which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 11 / 48

Page 24: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Functions

Functions are a way to break code into pieces,that can be easily reused.

Many languages require that all code must beorganized with functions.

The opening function is often called main()

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 11 / 48

Page 25: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

“Hello, World!” with Functions

CSci 127 (Hunter) Lecture 7 10 March 2020 12 / 48

Page 26: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Python Tutor

(Demo with pythonTutor)

CSci 127 (Hunter) Lecture 7 10 March 2020 13 / 48

Page 27: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

In Pairs or Triples:

Predict what the code will do:

CSci 127 (Hunter) Lecture 7 10 March 2020 14 / 48

Page 28: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Python Tutor

(Demo with pythonTutor)

CSci 127 (Hunter) Lecture 7 10 March 2020 15 / 48

Page 29: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Input Parameters & Return Values

Functions can have inputparameters.

Surrounded by parentheses,both in the function definition,and in the function call(invocation).

The “placeholders” in thefunction definition: formalparameters.

The ones in the function call:actual parameters

Functions can also returnvalues to where it was called.

CSci 127 (Hunter) Lecture 7 10 March 2020 16 / 48

Page 30: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Input Parameters & Return Values

Functions can have inputparameters.

Surrounded by parentheses,both in the function definition,and in the function call(invocation).

The “placeholders” in thefunction definition: formalparameters.

The ones in the function call:actual parameters

Functions can also returnvalues to where it was called.

CSci 127 (Hunter) Lecture 7 10 March 2020 16 / 48

Page 31: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Input Parameters & Return Values

Functions can have inputparameters.

Surrounded by parentheses,both in the function definition,and in the function call(invocation).

The “placeholders” in thefunction definition: formalparameters.

The ones in the function call:actual parameters

Functions can also returnvalues to where it was called.

CSci 127 (Hunter) Lecture 7 10 March 2020 16 / 48

Page 32: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Input Parameters & Return Values

Functions can have inputparameters.

Surrounded by parentheses,both in the function definition,and in the function call(invocation).

The “placeholders” in thefunction definition: formalparameters.

The ones in the function call:actual parameters

Functions can also returnvalues to where it was called.

CSci 127 (Hunter) Lecture 7 10 March 2020 16 / 48

Page 33: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Input Parameters & Return Values

Functions can have inputparameters.

Surrounded by parentheses,both in the function definition,and in the function call(invocation).

The “placeholders” in thefunction definition: formalparameters.

The ones in the function call:actual parameters

Functions can also returnvalues to where it was called.

CSci 127 (Hunter) Lecture 7 10 March 2020 16 / 48

Page 34: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Input Parameters & Return Values

Functions can have inputparameters.

Surrounded by parentheses,both in the function definition,and in the function call(invocation).

The “placeholders” in thefunction definition: formalparameters.

The ones in the function call:actual parameters.

Functions can also returnvalues to where it was called.

CSci 127 (Hunter) Lecture 7 10 March 2020 17 / 48

Page 35: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

In Pairs or Triples:Circle the actual parameters and underline the formal parameters:

CSci 127 (Hunter) Lecture 7 10 March 2020 18 / 48

Page 36: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

In Pairs or Triples:Circle the actual parameters and underline the formal parameters:

CSci 127 (Hunter) Lecture 7 10 March 2020 19 / 48

Page 37: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

In Pairs or Triples:Predict what the code will do:

CSci 127 (Hunter) Lecture 7 10 March 2020 20 / 48

Page 38: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Python Tutor

(Demo with pythonTutor)

CSci 127 (Hunter) Lecture 7 10 March 2020 21 / 48

Page 39: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

In Pairs or Triples:

Predict what the code will do:

CSci 127 (Hunter) Lecture 7 10 March 2020 22 / 48

Page 40: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Python Tutor

(Demo with pythonTutor)

CSci 127 (Hunter) Lecture 7 10 March 2020 23 / 48

Page 41: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

In Pairs or Triples:

Fill in the missing code:

CSci 127 (Hunter) Lecture 7 10 March 2020 24 / 48

Page 42: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

IDLE

(Demo with IDLE)

CSci 127 (Hunter) Lecture 7 10 March 2020 25 / 48

Page 43: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Github

Octocat

Used to collaborate on and share code,documents, etc.

Supporting Open-Source Software:original source code is made freelyavailable and may be redistributed andmodified.

More formally: git is a version controlprotocol for tracking changes and versionsof documents.

Github provides hosting for repositories(‘repos’) of code.

Also convenient place to host websites(i.e. huntercsci127.github.io).

In Lab6 you set up github accounts tocopy (‘clone’) documents from the classrepo. (More in future courses.)

CSci 127 (Hunter) Lecture 7 10 March 2020 26 / 48

Page 44: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Github

Octocat

Used to collaborate on and share code,documents, etc.

Supporting Open-Source Software:original source code is made freelyavailable and may be redistributed andmodified.

More formally: git is a version controlprotocol for tracking changes and versionsof documents.

Github provides hosting for repositories(‘repos’) of code.

Also convenient place to host websites(i.e. huntercsci127.github.io).

In Lab6 you set up github accounts tocopy (‘clone’) documents from the classrepo. (More in future courses.)

CSci 127 (Hunter) Lecture 7 10 March 2020 26 / 48

Page 45: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Github

Octocat

Used to collaborate on and share code,documents, etc.

Supporting Open-Source Software:original source code is made freelyavailable and may be redistributed andmodified.

More formally: git is a version controlprotocol for tracking changes and versionsof documents.

Github provides hosting for repositories(‘repos’) of code.

Also convenient place to host websites(i.e. huntercsci127.github.io).

In Lab6 you set up github accounts tocopy (‘clone’) documents from the classrepo. (More in future courses.)

CSci 127 (Hunter) Lecture 7 10 March 2020 26 / 48

Page 46: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Github

Octocat

Used to collaborate on and share code,documents, etc.

Supporting Open-Source Software:original source code is made freelyavailable and may be redistributed andmodified.

More formally: git is a version controlprotocol for tracking changes and versionsof documents.

Github provides hosting for repositories(‘repos’) of code.

Also convenient place to host websites(i.e. huntercsci127.github.io).

In Lab6 you set up github accounts tocopy (‘clone’) documents from the classrepo. (More in future courses.)

CSci 127 (Hunter) Lecture 7 10 March 2020 26 / 48

Page 47: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Github

Octocat

Used to collaborate on and share code,documents, etc.

Supporting Open-Source Software:original source code is made freelyavailable and may be redistributed andmodified.

More formally: git is a version controlprotocol for tracking changes and versionsof documents.

Github provides hosting for repositories(‘repos’) of code.

Also convenient place to host websites(i.e. huntercsci127.github.io).

In Lab6 you set up github accounts tocopy (‘clone’) documents from the classrepo. (More in future courses.)

CSci 127 (Hunter) Lecture 7 10 March 2020 26 / 48

Page 48: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Github

Octocat

Used to collaborate on and share code,documents, etc.

Supporting Open-Source Software:original source code is made freelyavailable and may be redistributed andmodified.

More formally: git is a version controlprotocol for tracking changes and versionsof documents.

Github provides hosting for repositories(‘repos’) of code.

Also convenient place to host websites(i.e. huntercsci127.github.io).

In Lab6 you set up github accounts tocopy (‘clone’) documents from the classrepo. (More in future courses.)

CSci 127 (Hunter) Lecture 7 10 March 2020 26 / 48

Page 49: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap: Functions

Functions are a way to break code into pieces,that can be easily reused.

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 27 / 48

Page 50: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap: Functions

Functions are a way to break code into pieces,that can be easily reused.

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:

Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 27 / 48

Page 51: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap: Functions

Functions are a way to break code into pieces,that can be easily reused.

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 27 / 48

Page 52: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap: Functions

Functions are a way to break code into pieces,that can be easily reused.

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,

which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 27 / 48

Page 53: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap: Functions

Functions are a way to break code into pieces,that can be easily reused.

You call or invoke a function by typing its name,followed by any inputs, surrounded by parenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

CSci 127 (Hunter) Lecture 7 10 March 2020 27 / 48

Page 54: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Today’s Topics

Recap: Slicing & Images

Introduction to Functions

NYC Open Data

CS Survey

CSci 127 (Hunter) Lecture 7 10 March 2020 28 / 48

Page 55: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Accessing Structured Data: NYC Open Data

Freely available source of data.

Maintained by the NYC data analytics team.

We will use several different ones for this class.

Will use pandas, pyplot & folium libraries to analyze, visualize andmap the data.

Lab 7 covers accessing and downloading NYC OpenData datasets.

CSci 127 (Hunter) Lecture 7 10 March 2020 29 / 48

Page 56: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Accessing Structured Data: NYC Open Data

Freely available source of data.

Maintained by the NYC data analytics team.

We will use several different ones for this class.

Will use pandas, pyplot & folium libraries to analyze, visualize andmap the data.

Lab 7 covers accessing and downloading NYC OpenData datasets.

CSci 127 (Hunter) Lecture 7 10 March 2020 29 / 48

Page 57: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Accessing Structured Data: NYC Open Data

Freely available source of data.

Maintained by the NYC data analytics team.

We will use several different ones for this class.

Will use pandas, pyplot & folium libraries to analyze, visualize andmap the data.

Lab 7 covers accessing and downloading NYC OpenData datasets.

CSci 127 (Hunter) Lecture 7 10 March 2020 29 / 48

Page 58: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Accessing Structured Data: NYC Open Data

Freely available source of data.

Maintained by the NYC data analytics team.

We will use several different ones for this class.

Will use pandas, pyplot & folium libraries to analyze, visualize andmap the data.

Lab 7 covers accessing and downloading NYC OpenData datasets.

CSci 127 (Hunter) Lecture 7 10 March 2020 29 / 48

Page 59: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Accessing Structured Data: NYC Open Data

Freely available source of data.

Maintained by the NYC data analytics team.

We will use several different ones for this class.

Will use pandas, pyplot & folium libraries to analyze, visualize andmap the data.

Lab 7 covers accessing and downloading NYC OpenData datasets.

CSci 127 (Hunter) Lecture 7 10 March 2020 29 / 48

Page 60: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

CSci 127 (Hunter) Lecture 7 10 March 2020 30 / 48

Page 61: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

What’s the most popular street for filming?

What’s the most popular borough?

How many TV episodes were filmed?

CSci 127 (Hunter) Lecture 7 10 March 2020 31 / 48

Page 62: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

What’s the most popular street for filming?

What’s the most popular borough?

How many TV episodes were filmed?

CSci 127 (Hunter) Lecture 7 10 March 2020 31 / 48

Page 63: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

What’s the most popular street for filming?

What’s the most popular borough?

How many TV episodes were filmed?

CSci 127 (Hunter) Lecture 7 10 March 2020 31 / 48

Page 64: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

Download the data as a CSV file and store on your computer.

Python program:

CSci 127 (Hunter) Lecture 7 10 March 2020 32 / 48

Page 65: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

Download the data as a CSV file and store on your computer.

Python program:

CSci 127 (Hunter) Lecture 7 10 March 2020 32 / 48

Page 66: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

Download the data as a CSV file and store on your computer.

Python program:

CSci 127 (Hunter) Lecture 7 10 March 2020 33 / 48

Page 67: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

Download the data as a CSV file and store on your computer.

Python program:

CSci 127 (Hunter) Lecture 7 10 March 2020 34 / 48

Page 68: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

Download the data as a CSV file and store on your computer.

Python program:

CSci 127 (Hunter) Lecture 7 10 March 2020 35 / 48

Page 69: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

Download the data as a CSV file and store on your computer.

Python program:

CSci 127 (Hunter) Lecture 7 10 March 2020 36 / 48

Page 70: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Example: OpenData Film Permits

Can approach the other questions in the same way:

What’s the most popular street for filming?

What’s the most popular borough?

How many TV episodes were filmed?

CSci 127 (Hunter) Lecture 7 10 March 2020 37 / 48

Page 71: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that finds the closest collision.

CSci 127 (Hunter) Lecture 7 10 March 2020 38 / 48

Page 72: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that finds the closest collision.

CSci 127 (Hunter) Lecture 7 10 March 2020 39 / 48

Page 73: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.3 Open up the CSV file.4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 74: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.3 Open up the CSV file.4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 75: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.3 Open up the CSV file.4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 76: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.3 Open up the CSV file.4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 77: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:

1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.3 Open up the CSV file.4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 78: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).

2 Ask user for current location.3 Open up the CSV file.4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 79: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.

3 Open up the CSV file.4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 80: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.3 Open up the CSV file.

4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 81: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.3 Open up the CSV file.4 Check distance from each collision to user’s location.

5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 82: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Question

Design an algorithm that uses NYC OpenData collision data and computesthe closest collision to the location the user provides.

How to approach this:

Create a “To Do” list of what your program has to accomplish.

Read through the problem, and break it into “To Do” items.

Don’t worry if you don’t know how to do all the items you write down.

Example:1 Find data set (great place to look: NYC OpenData).2 Ask user for current location.3 Open up the CSV file.4 Check distance from each collision to user’s location.5 Save the location with the smallest distance.

CSci 127 (Hunter) Lecture 7 10 March 2020 40 / 48

Page 83: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Today’s Topics

Recap: Slicing & Images

Introduction to Functions

NYC Open Data

CS Survey

CSci 127 (Hunter) Lecture 7 10 March 2020 41 / 48

Page 84: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

CS Survey

Brian CampbellHunter Alumnus class of‘19Software Engineer at Seamless

CSci 127 (Hunter) Lecture 7 10 March 2020 42 / 48

Page 85: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Challenge

CSci 127 (Hunter) Lecture 7 10 March 2020 43 / 48

Page 86: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Challenge

Possible solutions:

I 7 orders of mixed fruit, orI 2 orders hot wings, 1 order mixed fruit, and 1 sampler plate.

Input: List of items with prices and amount to be spent.

Output: An order that totals to the amount or empty list if none.

Possible algorithms: For each item on the list, divide total by price. If noremainder, return a list of that item. Repeat with two items, trying 1 of thefirst, 2 of the first, etc. Repeat with three items, etc.

“NP-Complete” problem: possible answers can be checked quickly, but notknown how to compute quickly.

CSci 127 (Hunter) Lecture 7 10 March 2020 44 / 48

Page 87: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Challenge

Possible solutions:I 7 orders of mixed fruit, or

I 2 orders hot wings, 1 order mixed fruit, and 1 sampler plate.

Input: List of items with prices and amount to be spent.

Output: An order that totals to the amount or empty list if none.

Possible algorithms: For each item on the list, divide total by price. If noremainder, return a list of that item. Repeat with two items, trying 1 of thefirst, 2 of the first, etc. Repeat with three items, etc.

“NP-Complete” problem: possible answers can be checked quickly, but notknown how to compute quickly.

CSci 127 (Hunter) Lecture 7 10 March 2020 44 / 48

Page 88: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Challenge

Possible solutions:I 7 orders of mixed fruit, orI 2 orders hot wings, 1 order mixed fruit, and 1 sampler plate.

Input: List of items with prices and amount to be spent.

Output: An order that totals to the amount or empty list if none.

Possible algorithms: For each item on the list, divide total by price. If noremainder, return a list of that item. Repeat with two items, trying 1 of thefirst, 2 of the first, etc. Repeat with three items, etc.

“NP-Complete” problem: possible answers can be checked quickly, but notknown how to compute quickly.

CSci 127 (Hunter) Lecture 7 10 March 2020 44 / 48

Page 89: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Challenge

Possible solutions:I 7 orders of mixed fruit, orI 2 orders hot wings, 1 order mixed fruit, and 1 sampler plate.

Input: List of items with prices and amount to be spent.

Output: An order that totals to the amount or empty list if none.

Possible algorithms: For each item on the list, divide total by price. If noremainder, return a list of that item. Repeat with two items, trying 1 of thefirst, 2 of the first, etc. Repeat with three items, etc.

“NP-Complete” problem: possible answers can be checked quickly, but notknown how to compute quickly.

CSci 127 (Hunter) Lecture 7 10 March 2020 44 / 48

Page 90: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Challenge

Possible solutions:I 7 orders of mixed fruit, orI 2 orders hot wings, 1 order mixed fruit, and 1 sampler plate.

Input: List of items with prices and amount to be spent.

Output: An order that totals to the amount or empty list if none.

Possible algorithms: For each item on the list, divide total by price. If noremainder, return a list of that item. Repeat with two items, trying 1 of thefirst, 2 of the first, etc. Repeat with three items, etc.

“NP-Complete” problem: possible answers can be checked quickly, but notknown how to compute quickly.

CSci 127 (Hunter) Lecture 7 10 March 2020 44 / 48

Page 91: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Challenge

Possible solutions:I 7 orders of mixed fruit, orI 2 orders hot wings, 1 order mixed fruit, and 1 sampler plate.

Input: List of items with prices and amount to be spent.

Output: An order that totals to the amount or empty list if none.

Possible algorithms: For each item on the list, divide total by price. If noremainder, return a list of that item. Repeat with two items, trying 1 of thefirst, 2 of the first, etc. Repeat with three items, etc.

“NP-Complete” problem: possible answers can be checked quickly, but notknown how to compute quickly.

CSci 127 (Hunter) Lecture 7 10 March 2020 44 / 48

Page 92: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Design Challenge

Possible solutions:I 7 orders of mixed fruit, orI 2 orders hot wings, 1 order mixed fruit, and 1 sampler plate.

Input: List of items with prices and amount to be spent.

Output: An order that totals to the amount or empty list if none.

Possible algorithms: For each item on the list, divide total by price. If noremainder, return a list of that item. Repeat with two items, trying 1 of thefirst, 2 of the first, etc. Repeat with three items, etc.

“NP-Complete” problem: possible answers can be checked quickly, but notknown how to compute quickly.CSci 127 (Hunter) Lecture 7 10 March 2020 44 / 48

Page 93: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Today’s Topics

Recap: Slicing & Images

Introduction to Functions

NYC Open Data

CS Survey

CSci 127 (Hunter) Lecture 7 10 March 2020 45 / 48

Page 94: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap

On lecture slip, write down a topic you wishwe had spent more time (and why).

Functions are a way to break code intopieces, that can be easily reused.

You call or invoke a function by typing itsname, followed by any inputs, surrounded byparenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

Accessing Formatted Data: NYC OpenData

Pass your lecture slips to the aisles for theUTAs to collect.

CSci 127 (Hunter) Lecture 7 10 March 2020 46 / 48

Page 95: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap

On lecture slip, write down a topic you wishwe had spent more time (and why).

Functions are a way to break code intopieces, that can be easily reused.

You call or invoke a function by typing itsname, followed by any inputs, surrounded byparenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

Accessing Formatted Data: NYC OpenData

Pass your lecture slips to the aisles for theUTAs to collect.

CSci 127 (Hunter) Lecture 7 10 March 2020 46 / 48

Page 96: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap

On lecture slip, write down a topic you wishwe had spent more time (and why).

Functions are a way to break code intopieces, that can be easily reused.

You call or invoke a function by typing itsname, followed by any inputs, surrounded byparenthesis:

Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

Accessing Formatted Data: NYC OpenData

Pass your lecture slips to the aisles for theUTAs to collect.

CSci 127 (Hunter) Lecture 7 10 March 2020 46 / 48

Page 97: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap

On lecture slip, write down a topic you wishwe had spent more time (and why).

Functions are a way to break code intopieces, that can be easily reused.

You call or invoke a function by typing itsname, followed by any inputs, surrounded byparenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

Accessing Formatted Data: NYC OpenData

Pass your lecture slips to the aisles for theUTAs to collect.

CSci 127 (Hunter) Lecture 7 10 March 2020 46 / 48

Page 98: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap

On lecture slip, write down a topic you wishwe had spent more time (and why).

Functions are a way to break code intopieces, that can be easily reused.

You call or invoke a function by typing itsname, followed by any inputs, surrounded byparenthesis:Example: print("Hello", "World")

Can write, or define your own functions,

which are stored, until invoked or called.

Accessing Formatted Data: NYC OpenData

Pass your lecture slips to the aisles for theUTAs to collect.

CSci 127 (Hunter) Lecture 7 10 March 2020 46 / 48

Page 99: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap

On lecture slip, write down a topic you wishwe had spent more time (and why).

Functions are a way to break code intopieces, that can be easily reused.

You call or invoke a function by typing itsname, followed by any inputs, surrounded byparenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

Accessing Formatted Data: NYC OpenData

Pass your lecture slips to the aisles for theUTAs to collect.

CSci 127 (Hunter) Lecture 7 10 March 2020 46 / 48

Page 100: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap

On lecture slip, write down a topic you wishwe had spent more time (and why).

Functions are a way to break code intopieces, that can be easily reused.

You call or invoke a function by typing itsname, followed by any inputs, surrounded byparenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

Accessing Formatted Data: NYC OpenData

Pass your lecture slips to the aisles for theUTAs to collect.

CSci 127 (Hunter) Lecture 7 10 March 2020 46 / 48

Page 101: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Recap

On lecture slip, write down a topic you wishwe had spent more time (and why).

Functions are a way to break code intopieces, that can be easily reused.

You call or invoke a function by typing itsname, followed by any inputs, surrounded byparenthesis:Example: print("Hello", "World")

Can write, or define your own functions,which are stored, until invoked or called.

Accessing Formatted Data: NYC OpenData

Pass your lecture slips to the aisles for theUTAs to collect.

CSci 127 (Hunter) Lecture 7 10 March 2020 46 / 48

Page 102: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:I write as much you can for 60 seconds;I followed by answer; andI repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 103: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:I write as much you can for 60 seconds;I followed by answer; andI repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 104: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:

I write as much you can for 60 seconds;I followed by answer; andI repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 105: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:I write as much you can for 60 seconds;

I followed by answer; andI repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 106: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:I write as much you can for 60 seconds;I followed by answer; and

I repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 107: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:I write as much you can for 60 seconds;I followed by answer; andI repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 108: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:I write as much you can for 60 seconds;I followed by answer; andI repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 109: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:I write as much you can for 60 seconds;I followed by answer; andI repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!

Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 110: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Practice Quiz & Final Questions

Since you must pass the final exam to pass the course, we end everylecture with final exam review.

Pull out something to write on (not to be turned in).

Lightning rounds:I write as much you can for 60 seconds;I followed by answer; andI repeat.

Past exams are on the webpage (under Final Exam Information).

Theme: Functions!Starting with Summer 18, #4.

CSci 127 (Hunter) Lecture 7 10 March 2020 47 / 48

Page 111: CSci 127: Introduction to Computer ScienceMore formally: git is a version control protocol for tracking changes and versions of documents. Github provides hosting for repositories

Writing Boards

Return writing boards as you leave...

CSci 127 (Hunter) Lecture 7 10 March 2020 48 / 48


Recommended