This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course...

125
This is CS50

Transcript of This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course...

Page 1: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

This is CS50

Page 2: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

2/3of CS50 students have never taken CS before

Page 3: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

what ultimately matters in this course is not so much where you end up relative to your classmates but where you end up relative to yourself when you began

Page 4: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

input → → output

Page 5: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

representation

Page 6: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 7: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

0 1 2 3 4 5 6 7 8 9

Page 8: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

0 1

Page 9: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123

Page 10: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1231

Page 11: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

12310 1

Page 12: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123100 10 1

Page 13: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123100 10 1

100 × 1

Page 14: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123100 10 1

100 × 1 +

Page 15: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123100 10 1

100 × 1 10 × 2+

Page 16: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123100 10 1

100 × 1 10 × 2+ +

Page 17: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123100 10 1

100 × 1 10 × 2 1 × 3+ +

Page 18: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123100 10 1

100 20 3+ +

Page 19: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

123

Page 20: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

000100 10 1

Page 21: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

001100 10 1

Page 22: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

002100 10 1

Page 23: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

003100 10 1

Page 24: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

004100 10 1

Page 25: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

005100 10 1

Page 26: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

006100 10 1

Page 27: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

007100 10 1

Page 28: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

008100 10 1

Page 29: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

009100 10 1

Page 30: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

010100 10 1

Page 31: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

000100 10 1

Page 32: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

000102 101 100

Page 33: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

00022 21 20

Page 34: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

0004 2 1

Page 35: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

0014 2 1

Page 36: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

0104 2 1

Page 37: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

0114 2 1

Page 38: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1004 2 1

Page 39: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1014 2 1

Page 40: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1104 2 1

Page 41: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1114 2 1

Page 42: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

bit

Page 43: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

💡

Page 44: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

bit bit bit bit bit bit bit bit

Page 45: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

💡💡💡💡💡💡💡💡

Page 46: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

byte

Page 47: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

💡💡💡💡💡💡💡💡

Page 48: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

A

Page 49: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

65

Page 50: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

01000001

Page 51: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

65

Page 52: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

ASCII

Page 53: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

... A B C D E F G H I ...

... 65 66 67 68 69 70 71 72 73 ...

Page 54: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

72 73 33

Page 55: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

H I

72 73 33

Page 56: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

H I !

72 73 33

Page 57: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 58: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 59: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 60: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

Unicode

Page 61: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 62: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

128514

Page 63: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

11111011000000010

Page 64: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 65: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

RGB

Page 66: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 67: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

72 73 33

Page 68: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

72 73 33

Page 69: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 70: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 71: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 72: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 73: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 74: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 75: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 76: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 77: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

input → → output

Page 78: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

algorithms

Page 79: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

10245122561286432168421

Page 80: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 81: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 82: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 83: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 84: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 85: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 86: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 87: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 88: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

pseudocode

Page 89: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1 Pick up phone book2 Open to middle of phone book3 Look at page4 If Smith is on page5 Call Mike6 Else if Smith is earlier in book7 Open to middle of left half of book8 Go back to line 39 Else if Smith is later in book10 Open to middle of right half of book11 Go back to line 312 Else13 Quit

Page 90: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1 Pick up phone book2 Open to middle of phone book3 Look at page4 If Smith is on page5 Call Mike6 Else if Smith is earlier in book7 Open to middle of left half of book8 Go back to line 39 Else if Smith is later in book10 Open to middle of right half of book11 Go back to line 312 Else13 Quit

Page 91: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1 Pick up phone book2 Open to middle of phone book3 Look at page4 If Smith is on page5 Call Mike6 Else if Smith is earlier in book7 Open to middle of left half of book8 Go back to line 39 Else if Smith is later in book10 Open to middle of right half of book11 Go back to line 312 Else13 Quit

Page 92: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1 Pick up phone book2 Open to middle of phone book3 Look at page4 If Smith is on page5 Call Mike6 Else if Smith is earlier in book7 Open to middle of left half of book8 Go back to line 39 Else if Smith is later in book10 Open to middle of right half of book11 Go back to line 312 Else13 Quit

Page 93: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

1 Pick up phone book2 Open to middle of phone book3 Look at page4 If Smith is on page5 Call Mike6 Else if Smith is earlier in book7 Open to middle of left half of book8 Go back to line 39 Else if Smith is later in book10 Open to middle of right half of book11 Go back to line 312 Else13 Quit

Page 94: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

● functions● conditions● Boolean expressions● loops

Page 95: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

● functions● conditions● Boolean expressions● loops● variables● threads● events● ...

Page 96: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

#include <stdio.h>

int main(void){ printf("hello, world\n");}

Page 97: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 98: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 99: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 100: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 101: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 102: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 103: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 104: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

input → → outputalgorithms

Page 105: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ → algorithms → output

Page 106: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ → → output

Page 107: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ →

Page 108: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 109: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

input → → outputalgorithms

Page 110: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ → → outputalgorithms

Page 111: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ → → output

Page 112: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ →

Page 113: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 114: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

input → → outputalgorithms

Page 115: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ → → outputalgorithms

Page 116: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ → → output

Page 117: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ →

Page 118: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

Page 119: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

Page 120: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ →

Page 121: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

→ → →

Page 122: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 123: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 124: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10
Page 125: This is CS50 · of CS50 students have never taken CS before. what ultimately matters in this course is not so much where ... 8 Go back to line 3 9 Else if Smith is later in book 10

This is CS50