csci 127: introduction to computer sciencecsci 127 (hunter) lecture 5 25 february 20202/35...

111
CSci 127: Introduction to Computer Science hunter.cuny.edu/csci CSci 127 (Hunter) Lecture 5 25 February 2020 1 / 35

Upload: others

Post on 12-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

CSci 127: Introduction to Computer Science

hunter.cuny.edu/csci

CSci 127 (Hunter) Lecture 5 25 February 2020 1 / 35

Page 2: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 3: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?

Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 4: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 5: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?

Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 6: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”

We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 7: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 8: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?

Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 9: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 10: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?

Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 11: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).

Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 12: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not.

Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 13: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?

It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 14: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour).

If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 15: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Frequently Asked QuestionsFrom lecture slips & recitation sections.

Can we do more on colors, images, numpy & matplotlib?Yes, we will in Labs 6-9 & Lectures 6-9.Today, we’ll focus on decisions, and logical expressions & circuits.

What is pseudocode? Why do we use it?Pseudocode is the “informal high-level description of the operating principle of acomputer program or other algorithm.”We use it to write down the ideas, before getting deep into the details.

What are types of variables?Different kinds of information takes different amounts of space.Types we have seen so far: int, float, str and objects (e.g. turtles).

How can I tell strings from variables?Strings are surrounded by quotes (either single or double).Variables names (identifiers) for memory locations are not. Ex: ’num’ vs. num.

This course is Hybrid, what does that mean?It means that, instead of a recitation section, each week you independently readthe online lab (set aside about 1 hour). If you are not reading these thoroughly,you are going to miss a lot of important information (e.g. shell commands)

CSci 127 (Hunter) Lecture 5 25 February 2020 2 / 35

Page 16: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 17: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 18: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 19: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 20: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 21: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 22: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.

I Our industry partners want strong communication skills:F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 23: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 24: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, and

F communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 25: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

One More FAQ: Why Paper Planes?

Why paper planes?

It’s a classic design question in introductory programming classes, since

I Practice writing solutions (algorithms) in plain English withoutworrying about syntax (code).

I Practice thinking (and writing) precisely.

Why in groups?

I Improves mastery of material.I Our industry partners want strong communication skills:

F communicating technical ideas precisely, andF communicating and working in teams.

CSci 127 (Hunter) Lecture 5 25 February 2020 3 / 35

Page 26: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Plane Winners

Come claim your prizes after lecture:Design Team: Build Team:

Irene, Alisha, Charlie, (empty)

(empty) Shirley, Amanda

Kanglu, Ling, Xihao, Yaohoa (empty)

CSci 127 (Hunter) Lecture 5 25 February 2020 4 / 35

Page 27: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Today’s Topics

Recap: Decisions

Logical Expressions

Circuits

Binary Numbers

CS Survey

CSci 127 (Hunter) Lecture 5 25 February 2020 5 / 35

Page 28: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Today’s Topics

Recap: Decisions

Logical Expressions

Circuits

Binary Numbers

CS Survey

CSci 127 (Hunter) Lecture 5 25 February 2020 6 / 35

Page 29: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

In Pairs or Triples...

Some challenges with types & decisions:

CSci 127 (Hunter) Lecture 5 25 February 2020 7 / 35

Page 30: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Python Tutor

(Demo with pythonTutor)

CSci 127 (Hunter) Lecture 5 25 February 2020 8 / 35

Page 31: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Decisions

(programiz)

CSci 127 (Hunter) Lecture 5 25 February 2020 9 / 35

Page 32: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Side Note: Reading Flow Charts

(xkcd/518)

CSci 127 (Hunter) Lecture 5 25 February 2020 10 / 35

Page 33: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Today’s Topics

Recap: Decisions

Logical Expressions

Circuits

Binary Numbers

CS Survey

CSci 127 (Hunter) Lecture 5 25 February 2020 11 / 35

Page 34: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

In Pairs or Triples

Predict what the code will do:

CSci 127 (Hunter) Lecture 5 25 February 2020 12 / 35

Page 35: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Python Tutor

(Demo with pythonTutor)

CSci 127 (Hunter) Lecture 5 25 February 2020 13 / 35

Page 36: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Logical Operators

and

in1 in2 returns:False and False False

False and True False

True and False False

True and True True

or

in1 in2 returns:False or False False

False or True True

True or False True

True or True True

not

in1 returns:not False True

not True False

CSci 127 (Hunter) Lecture 5 25 February 2020 14 / 35

Page 37: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Logical Operators

and

in1 in2 returns:False and False False

False and True False

True and False False

True and True True

or

in1 in2 returns:False or False False

False or True True

True or False True

True or True True

not

in1 returns:not False True

not True False

CSci 127 (Hunter) Lecture 5 25 February 2020 14 / 35

Page 38: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Logical Operators

and

in1 in2 returns:False and False False

False and True False

True and False False

True and True True

or

in1 in2 returns:False or False False

False or True True

True or False True

True or True True

not

in1 returns:not False True

not True False

CSci 127 (Hunter) Lecture 5 25 February 2020 14 / 35

Page 39: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

In Pairs or TriplesPredict what the code will do:

CSci 127 (Hunter) Lecture 5 25 February 2020 15 / 35

Page 40: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Python Tutor

(Demo with pythonTutor)

CSci 127 (Hunter) Lecture 5 25 February 2020 16 / 35

Page 41: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Today’s Topics

Recap: Decisions

Logical Expressions

Circuits

CS Survey

CSci 127 (Hunter) Lecture 5 25 February 2020 17 / 35

Page 42: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Circuit Demo

(Demo with neuroproductions)

CSci 127 (Hunter) Lecture 5 25 February 2020 18 / 35

Page 43: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

In Pairs or Triples

Predict when these expressions are true:

• in1 or not in1:

• not(in1 or in2):

• (in1 and in2) and in3:

CSci 127 (Hunter) Lecture 5 25 February 2020 19 / 35

Page 44: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Circuit Demo

(Demo with neuroproductions)

CSci 127 (Hunter) Lecture 5 25 February 2020 20 / 35

Page 45: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

In Pairs or Triples

Draw a circuit that corresponds to each logical expression:

in1 or in2

(in1 or in2) and (in1 or in3)

(not(in1 and not in2)) or (in1 and (in2 and in3))

CSci 127 (Hunter) Lecture 5 25 February 2020 21 / 35

Page 46: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Circuit Demo

(Demo with neuroproductions)

CSci 127 (Hunter) Lecture 5 25 February 2020 22 / 35

Page 47: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Today’s Topics

Recap: Decisions

Logical Expressions

Circuits

Binary Numbers

CS Survey

CSci 127 (Hunter) Lecture 5 25 February 2020 23 / 35

Page 48: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Logic → Circuits → Numbers

Digital logic design allows for two states:I True / FalseI On / Off (two voltage levels)I 1 / 0

Computers store numbers using the Binary system (base 2)

A bit (binary digit) being 1 (on) or 0 (off)

CSci 127 (Hunter) Lecture 5 25 February 2020 24 / 35

Page 49: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Logic → Circuits → Numbers

Digital logic design allows for two states:

I True / FalseI On / Off (two voltage levels)I 1 / 0

Computers store numbers using the Binary system (base 2)

A bit (binary digit) being 1 (on) or 0 (off)

CSci 127 (Hunter) Lecture 5 25 February 2020 24 / 35

Page 50: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Logic → Circuits → Numbers

Digital logic design allows for two states:I True / False

I On / Off (two voltage levels)I 1 / 0

Computers store numbers using the Binary system (base 2)

A bit (binary digit) being 1 (on) or 0 (off)

CSci 127 (Hunter) Lecture 5 25 February 2020 24 / 35

Page 51: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Logic → Circuits → Numbers

Digital logic design allows for two states:I True / FalseI On / Off (two voltage levels)

I 1 / 0

Computers store numbers using the Binary system (base 2)

A bit (binary digit) being 1 (on) or 0 (off)

CSci 127 (Hunter) Lecture 5 25 February 2020 24 / 35

Page 52: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Logic → Circuits → Numbers

Digital logic design allows for two states:I True / FalseI On / Off (two voltage levels)I 1 / 0

Computers store numbers using the Binary system (base 2)

A bit (binary digit) being 1 (on) or 0 (off)

CSci 127 (Hunter) Lecture 5 25 February 2020 24 / 35

Page 53: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Logic → Circuits → Numbers

Digital logic design allows for two states:I True / FalseI On / Off (two voltage levels)I 1 / 0

Computers store numbers using the Binary system (base 2)

A bit (binary digit) being 1 (on) or 0 (off)

CSci 127 (Hunter) Lecture 5 25 February 2020 24 / 35

Page 54: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Logic → Circuits → Numbers

Digital logic design allows for two states:I True / FalseI On / Off (two voltage levels)I 1 / 0

Computers store numbers using the Binary system (base 2)

A bit (binary digit) being 1 (on) or 0 (off)

CSci 127 (Hunter) Lecture 5 25 February 2020 24 / 35

Page 55: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of twoI Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or notI In the ”twos” position we either have a 2 or notI In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 56: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of two

I Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or notI In the ”twos” position we either have a 2 or notI In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 57: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of twoI Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)

I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or notI In the ”twos” position we either have a 2 or notI In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 58: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of twoI Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or notI In the ”twos” position we either have a 2 or notI In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 59: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of twoI Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or notI In the ”twos” position we either have a 2 or notI In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 60: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of twoI Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or not

I In the ”twos” position we either have a 2 or notI In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 61: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of twoI Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or notI In the ”twos” position we either have a 2 or not

I In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 62: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of twoI Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or notI In the ”twos” position we either have a 2 or notI In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 63: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Binary Numbers

Two digits: 0 and 1

Each position is a power of twoI Decimal: the ”ones”, ”tens”, ”hundreds” and so on (powers of 10)I Binary: the ”ones”, ”twos”, ”fours”, ”sixteens” and so on (powers of 2)

In each position the digit is either 0 or 1, so given a binary number wecan obtain the decimal equivalent as follows:

I In the ”ones” position we either have a 1 or notI In the ”twos” position we either have a 2 or notI In the ”fours” position we either have a 4 or not ...

Example:11001base2 = 16 + 8 + 1 = 25base10

CSci 127 (Hunter) Lecture 5 25 February 2020 25 / 35

Page 64: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Today’s Topics

Recap: Decisions

Logical Expressions

Circuits

Binary Numbers

CS Survey

CSci 127 (Hunter) Lecture 5 25 February 2020 26 / 35

Page 65: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

CS Survey Talk: CUNY2X & TTP @Hunter

Bernard Desert & Elise Harris

Brief overview of CUNY 2X & Tech Talent Pipeline

What Bernard & Elise love about their jobs.

Design challenge: classic tech interview question.

CSci 127 (Hunter) Lecture 5 25 February 2020 27 / 35

Page 66: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

CS Survey Talk: CUNY2X & TTP @Hunter

Bernard Desert & Elise Harris

Brief overview of CUNY 2X & Tech Talent Pipeline

What Bernard & Elise love about their jobs.

Design challenge: classic tech interview question.

CSci 127 (Hunter) Lecture 5 25 February 2020 27 / 35

Page 67: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

CS Survey Talk: CUNY2X & TTP @Hunter

Bernard Desert & Elise Harris

Brief overview of CUNY 2X & Tech Talent Pipeline

What Bernard & Elise love about their jobs.

Design challenge: classic tech interview question.

CSci 127 (Hunter) Lecture 5 25 February 2020 27 / 35

Page 68: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

CS Survey Talk: CUNY2X & TTP @Hunter

Bernard Desert & Elise Harris

Brief overview of CUNY 2X & Tech Talent Pipeline

What Bernard & Elise love about their jobs.

Design challenge: classic tech interview question.

CSci 127 (Hunter) Lecture 5 25 February 2020 27 / 35

Page 69: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

CS Survey Talk: Hunter Tech Calendar

Sign up:

Tech events calendar: http://bit.ly/HunterTechCalendar

Newsletter: http://bit.ly/CUNY2XNewsletter

Hunter CS Handbook: http://bit.ly/huntercshandbook

CSci 127 (Hunter) Lecture 5 25 February 2020 28 / 35

Page 70: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12Fizz4BuzzFizz7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 71: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:

12Fizz4BuzzFizz7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 72: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:1

2Fizz4BuzzFizz7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 73: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12

Fizz4BuzzFizz7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 74: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12Fizz

4BuzzFizz7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 75: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12Fizz4

BuzzFizz7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 76: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12Fizz4Buzz

Fizz7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 77: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12Fizz4BuzzFizz

7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 78: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12Fizz4BuzzFizz7

...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 79: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12Fizz4BuzzFizz7...14

FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 80: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

Write down the output to see the pattern:12Fizz4BuzzFizz7...14FizzBuzz

CSci 127 (Hunter) Lecture 5 25 February 2020 29 / 35

Page 81: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List:I Create a loop that goes from 1 to 100.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I If divisible by both, print “FizzBuzz”.I Otherwise print the number.

Order matters!!! To print FizzBuzz when i is divisible by both it shouldbe checked first, otherwise it will never get to this case!

CSci 127 (Hunter) Lecture 5 25 February 2020 30 / 35

Page 82: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List:

I Create a loop that goes from 1 to 100.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I If divisible by both, print “FizzBuzz”.I Otherwise print the number.

Order matters!!! To print FizzBuzz when i is divisible by both it shouldbe checked first, otherwise it will never get to this case!

CSci 127 (Hunter) Lecture 5 25 February 2020 30 / 35

Page 83: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List:I Create a loop that goes from 1 to 100.

I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I If divisible by both, print “FizzBuzz”.I Otherwise print the number.

Order matters!!! To print FizzBuzz when i is divisible by both it shouldbe checked first, otherwise it will never get to this case!

CSci 127 (Hunter) Lecture 5 25 February 2020 30 / 35

Page 84: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List:I Create a loop that goes from 1 to 100.I If the number is divisible by 3, print “Fizz”.

I If the number is divisible by 5, print “Buzz”.I If divisible by both, print “FizzBuzz”.I Otherwise print the number.

Order matters!!! To print FizzBuzz when i is divisible by both it shouldbe checked first, otherwise it will never get to this case!

CSci 127 (Hunter) Lecture 5 25 February 2020 30 / 35

Page 85: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List:I Create a loop that goes from 1 to 100.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.

I If divisible by both, print “FizzBuzz”.I Otherwise print the number.

Order matters!!! To print FizzBuzz when i is divisible by both it shouldbe checked first, otherwise it will never get to this case!

CSci 127 (Hunter) Lecture 5 25 February 2020 30 / 35

Page 86: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List:I Create a loop that goes from 1 to 100.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I If divisible by both, print “FizzBuzz”.

I Otherwise print the number.Order matters!!! To print FizzBuzz when i is divisible by both it shouldbe checked first, otherwise it will never get to this case!

CSci 127 (Hunter) Lecture 5 25 February 2020 30 / 35

Page 87: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List:I Create a loop that goes from 1 to 100.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I If divisible by both, print “FizzBuzz”.I Otherwise print the number.

Order matters!!! To print FizzBuzz when i is divisible by both it shouldbe checked first, otherwise it will never get to this case!

CSci 127 (Hunter) Lecture 5 25 February 2020 30 / 35

Page 88: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List:I Create a loop that goes from 1 to 100.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I If divisible by both, print “FizzBuzz”.I Otherwise print the number.

Order matters!!! To print FizzBuzz when i is divisible by both it shouldbe checked first, otherwise it will never get to this case!

CSci 127 (Hunter) Lecture 5 25 February 2020 30 / 35

Page 89: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List (Reordered):

I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

CSci 127 (Hunter) Lecture 5 25 February 2020 31 / 35

Page 90: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List (Reordered):I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.

I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

CSci 127 (Hunter) Lecture 5 25 February 2020 31 / 35

Page 91: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

Write a program that prints the numbers from 1 to 100. But formultiples of three print “Fizz” instead of the number and for themultiples of five print “Buzz”. For numbers which are multiples ofboth three and five print “FizzBuzz”.

To Do List (Reordered):I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

CSci 127 (Hunter) Lecture 5 25 February 2020 31 / 35

Page 92: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

To Do List:I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

for i in range(1,101):

if i%3 == 0 and i%5 == 0:

print("FizzBuzz")

elif i%3 == 0:

print("Fizz")

elif i%5 == 0:

print("Buzz")

else:

print(i)

CSci 127 (Hunter) Lecture 5 25 February 2020 32 / 35

Page 93: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

To Do List:I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

for i in range(1,101):

if i%3 == 0 and i%5 == 0:

print("FizzBuzz")

elif i%3 == 0:

print("Fizz")

elif i%5 == 0:

print("Buzz")

else:

print(i)

CSci 127 (Hunter) Lecture 5 25 February 2020 32 / 35

Page 94: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

To Do List:I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

for i in range(1,101):

if i%3 == 0 and i%5 == 0:

print("FizzBuzz")

elif i%3 == 0:

print("Fizz")

elif i%5 == 0:

print("Buzz")

else:

print(i)

CSci 127 (Hunter) Lecture 5 25 February 2020 32 / 35

Page 95: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

To Do List:I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

for i in range(1,101):

if i%3 == 0 and i%5 == 0:

print("FizzBuzz")

elif i%3 == 0:

print("Fizz")

elif i%5 == 0:

print("Buzz")

else:

print(i)

CSci 127 (Hunter) Lecture 5 25 February 2020 32 / 35

Page 96: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

To Do List:I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

for i in range(1,101):

if i%3 == 0 and i%5 == 0:

print("FizzBuzz")

elif i%3 == 0:

print("Fizz")

elif i%5 == 0:

print("Buzz")

else:

print(i)

CSci 127 (Hunter) Lecture 5 25 February 2020 32 / 35

Page 97: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

To Do List:I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

for i in range(1,101):

if i%3 == 0 and i%5 == 0:

print("FizzBuzz")

elif i%3 == 0:

print("Fizz")

elif i%5 == 0:

print("Buzz")

else:

print(i)

CSci 127 (Hunter) Lecture 5 25 February 2020 32 / 35

Page 98: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Tech Interview Classic

To Do List:I Create a loop that goes from 1 to 100.I If divisible by both 3 and 5, print “FizzBuzz”.I If the number is divisible by 3, print “Fizz”.I If the number is divisible by 5, print “Buzz”.I Otherwise print the number.I Also should print a new line (so each entry is on its own line).

for i in range(1,101):

if i%3 == 0 and i%5 == 0:

print("FizzBuzz")

elif i%3 == 0:

print("Fizz")

elif i%5 == 0:

print("Buzz")

else:

print(i)

CSci 127 (Hunter) Lecture 5 25 February 2020 32 / 35

Page 99: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Recap

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

In Python, we introduced:

I DecisionsI Logical ExpressionsI CircuitsI Binary Numbers

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

CSci 127 (Hunter) Lecture 5 25 February 2020 33 / 35

Page 100: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Recap

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

In Python, we introduced:

I DecisionsI Logical ExpressionsI CircuitsI Binary Numbers

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

CSci 127 (Hunter) Lecture 5 25 February 2020 33 / 35

Page 101: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Recap

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

In Python, we introduced:

I DecisionsI Logical ExpressionsI CircuitsI Binary Numbers

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

CSci 127 (Hunter) Lecture 5 25 February 2020 33 / 35

Page 102: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Recap

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

In Python, we introduced:

I DecisionsI Logical ExpressionsI CircuitsI Binary Numbers

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

CSci 127 (Hunter) Lecture 5 25 February 2020 33 / 35

Page 103: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

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

We’re starting with Spring 2018, Version 1.

CSci 127 (Hunter) Lecture 5 25 February 2020 34 / 35

Page 104: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

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

We’re starting with Spring 2018, Version 1.

CSci 127 (Hunter) Lecture 5 25 February 2020 34 / 35

Page 105: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

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

We’re starting with Spring 2018, Version 1.

CSci 127 (Hunter) Lecture 5 25 February 2020 34 / 35

Page 106: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

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

We’re starting with Spring 2018, Version 1.

CSci 127 (Hunter) Lecture 5 25 February 2020 34 / 35

Page 107: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

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

We’re starting with Spring 2018, Version 1.

CSci 127 (Hunter) Lecture 5 25 February 2020 34 / 35

Page 108: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

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

We’re starting with Spring 2018, Version 1.

CSci 127 (Hunter) Lecture 5 25 February 2020 34 / 35

Page 109: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

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

We’re starting with Spring 2018, Version 1.

CSci 127 (Hunter) Lecture 5 25 February 2020 34 / 35

Page 110: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

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

We’re starting with Spring 2018, Version 1.

CSci 127 (Hunter) Lecture 5 25 February 2020 34 / 35

Page 111: CSci 127: Introduction to Computer ScienceCSci 127 (Hunter) Lecture 5 25 February 20202/35 Frequently Asked Questions From lecture slips & recitation sections. Can we do more on colors,

Writing Boards

Return writing boards as you leave...

CSci 127 (Hunter) Lecture 5 25 February 2020 35 / 35