Intro to
Computer Science
Jake Shoudy
Aug 10, 2022
CSCI 110 - Lecture 1
Today’s Agenda
|
|
| |
| |
| |
| |
Hello!
Introduce yourself to
your neighbor!
Who Am I?
That's me!
Google In Residence
Who are your TAs?
Aman Singh
Junior majoring in CS. Originally from Nepal. Enjoys helping people learn new skills.
Aminu Abdusalam
Senior majoring in CS. TA’d this class last year. Originally from Nigeria. Interested in mentoring underclassmen.
Angel Adetula
Sophomore majoring in Biology and Data Science. Wants to share the experience of her favorite class from last year with new students.
Arun Giri
Junior majoring in CS. New to CS before taking this class in 2020. Claims this class was “one of the best experiences I ever had.” Likes Cricket, Soccer, and Table Tennis.
Course Overview
What is this class?
This course assumes absolutely no experience.
You’re in the right place.
Reminder
Learning Zones
Imposter Syndrome
Class Time
Lecture MWF: 8AM-8:55AM (Libr-317)
Lab T: 8AM-9:50AM / 12:30PM-2:20PM / 3PM-4:50PM
(Libr-317)
Class Time
Lecture MWF: 11AM-11:55AM (Libr-317)
Lab T: 8AM-9:50AM / 12:30PM-2:20PM / 3PM-4:50PM
(Libr-317)
Class Time
Lecture MWF: 3PM-3:55PM (Libr-317)
Lab T: 8AM-9:50AM / 12:30PM-2:20PM / 3PM-4:50PM
(Libr-317)
We will Always Be Coding
Grading
Grading Weighting 1 (for test takers)
Grading Weighting 2 (for project lovers)
Grading example
Late Days
Dropped Assignments
We will be coding in Python on Edstem
Virtual Tools
Official class resources:
Unofficial: Google, Stack Overflow, YouTube, other programming courses on the web, various online documentation, etc.
How to get help
Problem Solving Protocol (PSP)
Office Hours - MWF 2PM-3PM
Th 11AM-12:30PM
Come ask questions
...or just chat! Happy to talk about anything :)
Lecture questions + homework help
Ask early!
can book office hours on the class calendar!
Quiz 0: Office Hours
Stop by before next Friday (August 19th) to get 100% on quiz #0!
You do not need to book a 15 minute slot :)
Cheating policy
If I Suspect Cheating
If I Catch Cheating
No copying
OK… Questions on Cheating?
What is Computer Science?
What is Computer Science?
A field of study that covers a huge range of topics! ��Can be thought of as using computers/computing to solve problems.
Software
Hardware
Software
Hardware
1100 1001
1101 0111
0010 1101
1001 1001
while cond != True:
instr = gen_inst()
cond = eval(instr)
return instr
Understands “Binary Code” Instructions
Understands Human instructions
Compiler
This Class
Python
Binary
Humans understand words. Computers understand 1s and 0s.
11001001 11010111 00101101 10011001
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Byte
Binary
Base 10
Reminder: human numbers (base 10) work by adding up multiples of powers of 10.
4387
103=1000
= (4 x 103) + (3 x 102) + (8 x 101) + (7 x 100)
= (4 x 1000) + (3 x 100) + (8 x 10) + (7 x 1)
101=10
102=100
100=1
= 4387
4387
Base 2 (binary)
Each Byte can be decoded into a human-readable (base 10) number.
01001101
27=128
= (0 x 27) + (1 x 26) + (0 x 25) + (0 x 24) + (1 x 23) + (1 x 22) + (0 x 21) + (1 x 20)
26=64
25=32
24=16
23=8
22=4
21=2
20=1
= 0 + 64 + 0 + 0 + 8 + 4 + 0 + 1
= 77
Try it yourself [2 minutes]
What number does this byte hold?
11010100
Try it yourself [2 minutes]
What number does this byte hold?
11010100
27=128
= (1 x 27) + (1 x 26) + (0 x 25) + (1 x 24) + (0 x 23) + (1 x 22) + (0 x 21) + (0 x 20)
26=64
25=32
24=16
23=8
22=4
21=2
20=1
= 128 + 64 + 0 + 16 + 0 + 4 + 0 + 0
= 212
Understanding check [2 minutes]
What is the maximum number a byte can hold?
Try it yourself [2 minutes]
What is the maximum number a byte can hold?
11111111
27=128
= (1 x 27) + (1 x 26) + (1 x 25) + (1 x 24) + (1 x 23) + (1 x 22) + (1 x 21) + (1 x 20)
26=64
25=32
24=16
23=8
22=4
21=2
20=1
= 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
= 255
Running code
What happens when you run code?
num_people = 5 |
Compiler
10110110 00111001 10011010 11111001 11000101 00000001
Programming Language (Python)
Machine Language (Binary)
10110110 00111001 10011010 11111001 11000101 00000001
Output of the program:
etc.
Review: Computer Science
What is it?
Study of how computers work, and how they can be used to solve problems. We learned about the difference in software vs hardware and practiced converting from binary to base 10.
Why is this important?
Every industry today is impacted by digital tools, from Google to Gucci
How will we learn?
Lectures, Labs, Homeworks, Projects, Office Hours
How will we be graded?
Attendance, Homeworks, Projects, Quizzes, Exams
Questions?