Top Banner
Department of Computer Science CSCI 1101B INTRODUCTION TO COMPUTER SCIENCE Sean Barker Bowdoin College Sean Barker Logistics and Organizational Info Instructor: Sean Barker [email protected] Course web page: http://www.bowdoin.edu/~sbarker/1101 Questions about dates, times, policies, etc... Check the website first! 2
5

CSCI 1101B INTRODUCTION TO - Bowdoin College

Feb 26, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CSCI 1101B INTRODUCTION TO - Bowdoin College

Department of Computer Science

CSCI 1101BINTRODUCTION TO

COMPUTER SCIENCE

Sean Barker

Bowdoin College

Sean Barker

Logistics and Organizational Info

•Instructor: Sean Barker [email protected]

•Course web page: http://www.bowdoin.edu/~sbarker/1101

•Questions about dates, times, policies, etc...• Check the website first!

2

Page 2: CSCI 1101B INTRODUCTION TO - Bowdoin College

BSE 2015 - Computer Science

First question...

3

What is computer science?

• “Computer science is no more about computers than astronomy is about telescopes, biology is about microscopes or chemistry is about beakers and test tubes. Science is not about tools, it is about how we use them and what we find out when we do.” – Michael Fellows & Ian Parberry

Sean Barker

Algorithms!

4

Page 3: CSCI 1101B INTRODUCTION TO - Bowdoin College

Sean Barker

Cooking an Egg

5

Sean Barker

An Example Algorithm

•Input: two whole numbers

•1. Call the larger number X, smaller number Y.

•2. Divide X by Y and call the remainder R.

•3. If R is not 0, then:• Change X to be the current value of Y,• Change Y to be the current value of R,• Go back to step 2.

•4. Output Y.

6

Page 4: CSCI 1101B INTRODUCTION TO - Bowdoin College

Sean Barker

Why Learn to Program?

7

Why Programming?

Enhance analytical/problem-solving abilities!Learn a valuable transferable skill!Prepare for further study of computer science

Sean Barker

Being Explicit

8

Page 5: CSCI 1101B INTRODUCTION TO - Bowdoin College

Sean Barker

Programming Languages

9