lecture 0 - intro - cs.mcgill.ca filelecture 0 - intro bentley james oakes january 5, 2015 bentley...

22
Lecture 0 - Intro Bentley James Oakes January 5, 2015 Bentley James Oakes Lecture 0 - Intro January 5, 2015 1 / 12

Upload: others

Post on 19-Oct-2019

6 views

Category:

Documents


0 download

TRANSCRIPT

Lecture 0 - Intro

Bentley James Oakes

January 5, 2015

Bentley James Oakes Lecture 0 - Intro January 5, 2015 1 / 12

Introduction

Welcome to COMP 202!Foundations of Programming

Bentley James Oakes Lecture 0 - Intro January 5, 2015 2 / 12

This Lecture

About the CourseStart of Course Material

AlgorithmsBinary Numbers

Bentley James Oakes Lecture 0 - Intro January 5, 2015 3 / 12

Section 1

About the Course

Bentley James Oakes Lecture 0 - Intro January 5, 2015 4 / 12

Session Info

1 Instructor - Bentley James Oakes2 Email - [email protected] Room - SADB M-14 Times - MWF 12:35 to 13:255 Websites

1 http://www.cs.mcgill.ca/~cs202/2 MyCourses

Bentley James Oakes Lecture 0 - Intro January 5, 2015 5 / 12

Resources

Come to class

Use Google and WikipediaRead the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Services

http://www.mcgill.ca/studentservices/Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and Wikipedia

Read the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Services

http://www.mcgill.ca/studentservices/Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbook

Ask for help

Attend office hoursEmail TAs

McGill Student Services

http://www.mcgill.ca/studentservices/Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Services

http://www.mcgill.ca/studentservices/Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbookAsk for help

Attend office hours

Email TAsMcGill Student Services

http://www.mcgill.ca/studentservices/Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Services

http://www.mcgill.ca/studentservices/Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Services

http://www.mcgill.ca/studentservices/Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Serviceshttp://www.mcgill.ca/studentservices/

Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Serviceshttp://www.mcgill.ca/studentservices/Career Planning

Office for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Serviceshttp://www.mcgill.ca/studentservices/Career PlanningOffice for Students with Disabilities

Counselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Resources

Come to classUse Google and WikipediaRead the textbookAsk for help

Attend office hoursEmail TAs

McGill Student Serviceshttp://www.mcgill.ca/studentservices/Career PlanningOffice for Students with DisabilitiesCounselling/Support

Bentley James Oakes Lecture 0 - Intro January 5, 2015 6 / 12

Horse to Water

Bentley James Oakes Lecture 0 - Intro January 5, 2015 7 / 12

Section 2

What is Programming?

Bentley James Oakes Lecture 0 - Intro January 5, 2015 8 / 12

XKCD

http://xkcd.com/722/

Bentley James Oakes Lecture 0 - Intro January 5, 2015 9 / 12

Algorithms

Programming is about writing algorithmsAn algorithm is ‘a process or set of rules to be followed’Composed of Input → Instructions → Output

Bentley James Oakes Lecture 0 - Intro January 5, 2015 10 / 12

Algorithm Examples

1 Ingredients to Cake2 Counting students in a room3 Fahrenheit to Celsius4 Coded Message to Plain Text

Bentley James Oakes Lecture 0 - Intro January 5, 2015 11 / 12

Algorithms

https://www.youtube.com/watch?v=6hfOvs8pY1k

Bentley James Oakes Lecture 0 - Intro January 5, 2015 12 / 12