Programming Fundamentals: Week 01
Programming Fundamentals: Week 01
Fundamentals
WEEK 01
Computer Organization
Computer Organization
Central Processing Unit
“Administrative” section of a computer
Coordinates and supervises the operation of the other
sections
Can execute billions of instructions per second
Multi-core processors:
◦ Implements multiple processors on a single integrated-circuit
chip—a dual-core processor has two
CPUs and a quad-core processor has four CPUs etc.
Random Access Memory (RAM)
Also called memory, main memory, or primary memory
off-chip
memory
silicon
disk ferro-magnetic
space
Space vs. Speed
Speed becomes plentiful as we move up the pyramid
Input
Number: 1
Input
Number: 2
Number1+Number2
Output: Sum
End
Example
Find the largest number among the two number
Start
entered by the user.
Input N1
Input N2
If No
Output: N2
N1>N2?
YES
Output: N1 End
“He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever”
Chinese Proverb
Questions?
“The wise man doesn't give the right answers, he poses the right questions.”
Claude Levi-Strauss
“A wise man can learn more from a foolish question than a fool can learn from a wise answer.”
Bruce Lee