SlideShare a Scribd company logo
1 of 24
An Introduction To Software
Development Using Python
Spring Semester, 2015
Class #1:
Understanding
Computers
An Example Python Job Description
• Python developer (H3 Technologies, San Diego, CA, 5 months ago)
• Job Description: Job Title : Sr. Software Engineer -Python And C++
• Location : San Diego ,CA; Duration : 6 Months+(Contract / Contract to Hire)
• Job Description:
– Python Developer
– Desired skills:
– Python and Python Packages and Libraries: NumPy, SciPy, Pickle
– Relational and Non-Relational Database Technologies: SQL, MySQL, NoSQL,
MonoDB, Cassandra
– Practical working knowledge of Linux, C++
– Ability/Experience in optimization of Python 2.x and 3.x code for computational
and I/O efficiency
– Experience using web servers such as Apache or Tomcat in conjunction with Python
– Familiar with XML
What Is A Computer?
Image Credit: ota_photos, Alex Lomix, yum9me, Kevin Wu
CPU
(Microprocessor)
Memory
(RAM: Random
Access Memory)
Hard Drive
(Disk Drive)
Keyboard
(Input)
Display
(Output)
A computer is an electronic device that
stores and processes data.
A computer includes both hardware and software. In general,
hardware comprises the visible, physical elements of the
computer, and software provides the invisible instructions
that control the hardware and make it perform specific tasks.
What Is A Bus?
• A computer’s components are
interconnected by a subsystem called a
bus.
• You can think of a bus as a sort of system
of roads running among the computer’s
components; data and power travel
along the bus from one part of the
computer to another.
• In personal computers, the bus is built
into the computer’s motherboard, which
is a circuit case that connects all of the
parts of a computer together
Image Credit: LoveToKnow, Corp
What Is A Central Processing Unit?
• The central processing unit (CPU) is the
computer’s brain. It retrieves instructions
from memory and executes them. The CPU
usually has two components: a control unit
and an arithmetic/logic unit.
• The control unit controls and coordinates
the actions of the other components. The
arithmetic/logic unit performs numeric
operations (addition, subtraction,
multiplication, division) and logical
operations (comparisons).
• Today’s CPUs are built on small silicon
semiconductor chips that contain millions of
tiny electric switches, called transistors, for
processing information.
Intel 4004, 1971,
Clock rate 740kHz
Intel 8086, 1978,
Clock rate 10MHz
Intel Pentium, 1993,
Clock rate 66MHz
Intel Core i7, 2011,
Clock rate 4GHz
Image Credit: Devraj Goswami
What Goes Into A CPU?
• Every computer has an internal clock, which
emits electronic pulses at a constant rate.
• The unit of measurement of clock speed is the
hertz (Hz), with 1 hertz equaling 1 pulse per
second.
• In the 1990s computers measured clocked
speed in megahertz (MHz), but CPU speed has
been improving continuously and the clock
speed of a computer is now usually stated in
gigahertz (GHz).
• CPUs were originally developed with only one
core. The core is the part of the processor that
performs the reading and executing of
instructions.
• In order to increase CPU processing power, chip
manufacturers are now producing CPUs that
contain multiple cores.
Insides of the PS4 processor
Multi-Core CPU
How Is Information Stored
In A Computer?
• Both data and programs are stored in a computer.
• A computer is really nothing more than a series of
switches. Each switch exists in two states: on or off.
Storing information in a computer is simply a matter
of setting a sequence of switches on or off. If the
switch is on, its value is 1. If the switch is off, its value
is 0.
• These 0s and 1s are interpreted as digits in the binary
number system and are called bits (binary digits).
Image Credit: sdobie
1
0
The Binary Numbering System
• In mathematics and digital electronics, a binary
number is a number expressed in the binary
numeral system, or base-2 numeral system,
which represents numeric values using two
different symbols: typically 0 (zero) and 1 (one).
• Because of its straightforward implementation
in digital electronic circuitry using logic gates,
the binary system is used internally by almost
all modern computers and computer-based
devices such as mobile phones.
• Each digit is referred to as a bit.
Binary Math Time!
• 1
• 23
• 65
• 128
• 1,003
29 28 27 26 25 24 23 22 21 20
512 256 128 64 32 16 8 4 2 1
1
1 1 1 10
1111111111
1
10 0 0 0 0
0 0 0 0 0 0 0
1
1 1 1 1 1 0 1 0 1 1
512+256+128+64+32+16+8+4+2+1= 1023
Bits Make Bytes
• The minimum storage unit in a computer is a byte. A byte is composed of eight
bits. A small number such as 23 can be stored as a single byte. To store a number
that cannot fit into a single byte (1,003), the computer uses several bytes.
1 Byte = 00000000, 23 = 00010111, 1,003 = 00000011 11101011
• Data of various kinds, such as numbers and characters, are encoded as a series of
bytes. As a programmer, you don’t need to worry about the encoding and
decoding of data, which the computer system performs automatically, based on
the encoding scheme.
• An encoding scheme is a set of rules that govern how a computer translates
characters, numbers, and symbols into data the computer can actually work with.
• Most schemes translate each character into a predetermined string of numbers. In
the popular ASCII encoding scheme, for example, the character A is represented as
1000001 in one byte.
ASCII table
“A” = 65 = 1000001
How Big Is That Storage?
• A computer’s storage capacity is measured in bytes and multiples of the
byte, as follows:
■ A kilobyte (KB) is about 1,000 bytes.
■ A megabyte (MB) is about 1 million bytes.
■ A gigabyte (GB) is about 1 billion bytes.
■ A terabyte (TB) is about 1 trillion bytes.
• A typical one-page word document might take 20 KB. Therefore, 1 MB can
store 50 pages of documents and 1 GB can store 50,000 pages of
documents. A typical two-hour high-resolution movie might take 8 GB, so
it would require 160 GB to store 20 movies.
Image Credit: shehan peruma
Thanks For The Memories
• A computer’s memory consists of an
ordered sequence of bytes for storing
programs as well as data that the program is
working with.
• A program and its data must be moved into
the computer’s memory before they can be
executed by the CPU.
• Every byte in the memory has a unique
address. The address is used to locate the
byte for storing and retrieving the data.
• Since the bytes in the memory can
be accessed in any order, the memory is also
referred to as random-access memory
(RAM).
• The current content of a memory byte is lost
whenever new information is placed in it.
Don’t Forget: Storage Devices
• A computer’s memory (RAM) is a volatile form of data storage: any information
that has been stored in memory (that is, saved) is lost when the system’s power is
turned off.
Note: an exception to this rule is flash memory – non-volatile memory that can be
reprogramed. This is why some computers can remember where they were even
after they were turned off
• Programs and data are permanently stored on storage devices and are moved,
when the computer actually uses them, to memory, which operates at much faster
speeds than permanent storage devices can.
– Magnetic disk drives
– Optical disc drives (CD and DVD)
– USB flash drives
Image Credit: Gabriel Li
Let’s Talk: Input / Output Devices
Input Output
Image Credit: angelcalzado, Sir Adavis
Computers Use Networks To Talk With
Each Other
Image Credit: Emerson Posadas, All-free-download.com
There are many different types of networks:
LAN, WAN, WLAN, MAN, SAN, PAN, EPN & VPN
What Is Software?
Software means computer instructions or data.
Anything that can be stored electronically is software,
in contrast to storage devices and display devices
which are called hardware.
10 Input “What is your name?”
20 Input name$
30 Print “Hello”,name$
40 Print “The current time is”, sys_time
50 End
00001011 01010101
11100111 10011001
11110001 10101110
10000001 01111110
10101010
10 Input “What is your name?”
20 Input name$
30 Print “Hello”,name$
40 Print “The current time is”, sys_time
50 End
Programming Languages That Are
Used To Create Software
Computer programs, known as software,
are instructions that tell a computer what to do
Image Credit: ubergizmo
Where It All Starts:
Machine Language
Image Credit: SlideShare
Value Of AX
7
8
13
AX
13
One Level Higher:
Assembly Language
What We’ll Use:
High Level Languages
Everything Depends On The Operating
System
The operating system (OS) is the most important program that runs on a computer.
The OS manages and controls a computer’s activities.
The major tasks of an operating system are:
• Controlling and monitoring system activities
• Allocating and assigning system resources
• Scheduling operations
What We Covered Today
1. Learned what a computer is.
2. Discovered how CPUs have
evolved over time.
3. Reviewed the binary numbering
system.
4. Reviewed different types of
computer storage.
5. Studied the different levels of
computer programming:
machine, assembly, and higher-
level.
Image Credit: http://www.tswdj.com/blog/2011/05/17/the-grooms-checklist/
What We’ll Be Covering Next Time
1. Software
2. Programming
Image Credit: http://merchantblog.thefind.com/2011/01/merchant-newsletter/resolve-to-take-advantage-of-these-5-e-commerce-trends/attachment/crystal-ball-fullsize/

More Related Content

What's hot

Understanding Computers - Introduction to Computers
Understanding Computers - Introduction to ComputersUnderstanding Computers - Introduction to Computers
Understanding Computers - Introduction to ComputersGufranAhmadJU
 
Computer Fundamentals
Computer FundamentalsComputer Fundamentals
Computer Fundamentalsmaclather
 
Bba i-introduction to computer-u-1-computer hardware system
Bba  i-introduction to computer-u-1-computer hardware systemBba  i-introduction to computer-u-1-computer hardware system
Bba i-introduction to computer-u-1-computer hardware systemRai University
 
HARDWARE AND PC MAINTENANCE -THE COMPLETE PC-MRS SOWMYA JYOTHI REFERENCE-MIKE...
HARDWARE AND PC MAINTENANCE -THE COMPLETE PC-MRS SOWMYA JYOTHI REFERENCE-MIKE...HARDWARE AND PC MAINTENANCE -THE COMPLETE PC-MRS SOWMYA JYOTHI REFERENCE-MIKE...
HARDWARE AND PC MAINTENANCE -THE COMPLETE PC-MRS SOWMYA JYOTHI REFERENCE-MIKE...Sowmya Jyothi
 
Int Cs Rev
Int Cs RevInt Cs Rev
Int Cs RevnorthVU
 
Ap Power Point Chpt1
Ap Power Point Chpt1Ap Power Point Chpt1
Ap Power Point Chpt1dplunkett
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentalsRajesh Dash
 
Introduction To Computer Systems
Introduction To Computer SystemsIntroduction To Computer Systems
Introduction To Computer SystemsNaheed Azam
 
Introduction to computer according to veta curicullum
Introduction to computer according to veta curicullumIntroduction to computer according to veta curicullum
Introduction to computer according to veta curicullumSteven Alphonce
 
Basic Computer Concepts
Basic Computer ConceptsBasic Computer Concepts
Basic Computer ConceptsReynz Anario
 
Office automation
Office automationOffice automation
Office automationCNEX
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentalsFathimaLidiya
 
Mca i-fundamental of computer-u-1-computer hardware system
Mca  i-fundamental of  computer-u-1-computer hardware systemMca  i-fundamental of  computer-u-1-computer hardware system
Mca i-fundamental of computer-u-1-computer hardware systemRai University
 

What's hot (20)

Understanding Computers - Introduction to Computers
Understanding Computers - Introduction to ComputersUnderstanding Computers - Introduction to Computers
Understanding Computers - Introduction to Computers
 
Computer Fundamentals
Computer FundamentalsComputer Fundamentals
Computer Fundamentals
 
Bba i-introduction to computer-u-1-computer hardware system
Bba  i-introduction to computer-u-1-computer hardware systemBba  i-introduction to computer-u-1-computer hardware system
Bba i-introduction to computer-u-1-computer hardware system
 
HARDWARE AND PC MAINTENANCE -THE COMPLETE PC-MRS SOWMYA JYOTHI REFERENCE-MIKE...
HARDWARE AND PC MAINTENANCE -THE COMPLETE PC-MRS SOWMYA JYOTHI REFERENCE-MIKE...HARDWARE AND PC MAINTENANCE -THE COMPLETE PC-MRS SOWMYA JYOTHI REFERENCE-MIKE...
HARDWARE AND PC MAINTENANCE -THE COMPLETE PC-MRS SOWMYA JYOTHI REFERENCE-MIKE...
 
Int Cs Rev
Int Cs RevInt Cs Rev
Int Cs Rev
 
E 100_p
E  100_pE  100_p
E 100_p
 
Ap Power Point Chpt1
Ap Power Point Chpt1Ap Power Point Chpt1
Ap Power Point Chpt1
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
Overview of comp system
Overview of comp systemOverview of comp system
Overview of comp system
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
Beekman5 std ppt_02
Beekman5 std ppt_02Beekman5 std ppt_02
Beekman5 std ppt_02
 
Introduction To Computer Systems
Introduction To Computer SystemsIntroduction To Computer Systems
Introduction To Computer Systems
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
Introduction to computer according to veta curicullum
Introduction to computer according to veta curicullumIntroduction to computer according to veta curicullum
Introduction to computer according to veta curicullum
 
Fundamental note New
Fundamental note NewFundamental note New
Fundamental note New
 
Computer systems
Computer systemsComputer systems
Computer systems
 
Basic Computer Concepts
Basic Computer ConceptsBasic Computer Concepts
Basic Computer Concepts
 
Office automation
Office automationOffice automation
Office automation
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
Mca i-fundamental of computer-u-1-computer hardware system
Mca  i-fundamental of  computer-u-1-computer hardware systemMca  i-fundamental of  computer-u-1-computer hardware system
Mca i-fundamental of computer-u-1-computer hardware system
 

Viewers also liked

Memory Handling and Garbage Collection in Python
Memory Handling and Garbage Collection in PythonMemory Handling and Garbage Collection in Python
Memory Handling and Garbage Collection in PythonPOOJA MEHTA
 
Everything You Always Wanted to Know About Memory in Python But Were Afraid t...
Everything You Always Wanted to Know About Memory in Python But Were Afraid t...Everything You Always Wanted to Know About Memory in Python But Were Afraid t...
Everything You Always Wanted to Know About Memory in Python But Were Afraid t...Piotr Przymus
 
Everything You Always Wanted to Know About Memory in Python - But Were Afraid...
Everything You Always Wanted to Know About Memory in Python - But Were Afraid...Everything You Always Wanted to Know About Memory in Python - But Were Afraid...
Everything You Always Wanted to Know About Memory in Python - But Were Afraid...Piotr Przymus
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()Blue Elephant Consulting
 
An Introduction To Python - Variables, Math
An Introduction To Python - Variables, MathAn Introduction To Python - Variables, Math
An Introduction To Python - Variables, MathBlue Elephant Consulting
 
An Introduction To Software Development - Software Support and Maintenance
An Introduction To Software Development - Software Support and MaintenanceAn Introduction To Software Development - Software Support and Maintenance
An Introduction To Software Development - Software Support and MaintenanceBlue Elephant Consulting
 
An Introduction To Python - Nested Branches, Multiple Alternatives
An Introduction To Python - Nested Branches, Multiple AlternativesAn Introduction To Python - Nested Branches, Multiple Alternatives
An Introduction To Python - Nested Branches, Multiple AlternativesBlue Elephant Consulting
 
An Introduction To Python - Python Midterm Review
An Introduction To Python - Python Midterm ReviewAn Introduction To Python - Python Midterm Review
An Introduction To Python - Python Midterm ReviewBlue Elephant Consulting
 
An Introduction To Python - Working With Data
An Introduction To Python - Working With DataAn Introduction To Python - Working With Data
An Introduction To Python - Working With DataBlue Elephant Consulting
 
An Introduction To Python - Functions, Part 2
An Introduction To Python - Functions, Part 2An Introduction To Python - Functions, Part 2
An Introduction To Python - Functions, Part 2Blue Elephant Consulting
 
An Introduction To Python - Tables, List Algorithms
An Introduction To Python - Tables, List AlgorithmsAn Introduction To Python - Tables, List Algorithms
An Introduction To Python - Tables, List AlgorithmsBlue Elephant Consulting
 
An Introduction To Software Development - Implementation
An Introduction To Software Development - ImplementationAn Introduction To Software Development - Implementation
An Introduction To Software Development - ImplementationBlue Elephant Consulting
 

Viewers also liked (20)

Memory Management in Python
Memory Management in PythonMemory Management in Python
Memory Management in Python
 
Memory Handling and Garbage Collection in Python
Memory Handling and Garbage Collection in PythonMemory Handling and Garbage Collection in Python
Memory Handling and Garbage Collection in Python
 
Everything You Always Wanted to Know About Memory in Python But Were Afraid t...
Everything You Always Wanted to Know About Memory in Python But Were Afraid t...Everything You Always Wanted to Know About Memory in Python But Were Afraid t...
Everything You Always Wanted to Know About Memory in Python But Were Afraid t...
 
Everything You Always Wanted to Know About Memory in Python - But Were Afraid...
Everything You Always Wanted to Know About Memory in Python - But Were Afraid...Everything You Always Wanted to Know About Memory in Python - But Were Afraid...
Everything You Always Wanted to Know About Memory in Python - But Were Afraid...
 
Python Objects
Python ObjectsPython Objects
Python Objects
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()
 
An Introduction To Python - Variables, Math
An Introduction To Python - Variables, MathAn Introduction To Python - Variables, Math
An Introduction To Python - Variables, Math
 
An Introduction To Python - WHILE Loop
An Introduction To  Python - WHILE LoopAn Introduction To  Python - WHILE Loop
An Introduction To Python - WHILE Loop
 
An Introduction To Software Development - Software Support and Maintenance
An Introduction To Software Development - Software Support and MaintenanceAn Introduction To Software Development - Software Support and Maintenance
An Introduction To Software Development - Software Support and Maintenance
 
An Introduction To Python - Nested Branches, Multiple Alternatives
An Introduction To Python - Nested Branches, Multiple AlternativesAn Introduction To Python - Nested Branches, Multiple Alternatives
An Introduction To Python - Nested Branches, Multiple Alternatives
 
An Introduction To Python - Python Midterm Review
An Introduction To Python - Python Midterm ReviewAn Introduction To Python - Python Midterm Review
An Introduction To Python - Python Midterm Review
 
An Introduction To Python - Working With Data
An Introduction To Python - Working With DataAn Introduction To Python - Working With Data
An Introduction To Python - Working With Data
 
An Introduction To Python - Files, Part 1
An Introduction To Python - Files, Part 1An Introduction To Python - Files, Part 1
An Introduction To Python - Files, Part 1
 
An Introduction To Python - Dictionaries
An Introduction To Python - DictionariesAn Introduction To Python - Dictionaries
An Introduction To Python - Dictionaries
 
An Introduction To Python - Lists, Part 2
An Introduction To Python - Lists, Part 2An Introduction To Python - Lists, Part 2
An Introduction To Python - Lists, Part 2
 
An Introduction To Python - Lists, Part 1
An Introduction To Python - Lists, Part 1An Introduction To Python - Lists, Part 1
An Introduction To Python - Lists, Part 1
 
An Introduction To Python - Functions, Part 2
An Introduction To Python - Functions, Part 2An Introduction To Python - Functions, Part 2
An Introduction To Python - Functions, Part 2
 
An Introduction To Python - Graphics
An Introduction To Python - GraphicsAn Introduction To Python - Graphics
An Introduction To Python - Graphics
 
An Introduction To Python - Tables, List Algorithms
An Introduction To Python - Tables, List AlgorithmsAn Introduction To Python - Tables, List Algorithms
An Introduction To Python - Tables, List Algorithms
 
An Introduction To Software Development - Implementation
An Introduction To Software Development - ImplementationAn Introduction To Software Development - Implementation
An Introduction To Software Development - Implementation
 

Similar to An Introduction To Python - Understanding Computers

Computer Fundamentals.pptx
Computer Fundamentals.pptxComputer Fundamentals.pptx
Computer Fundamentals.pptxJaimeCanchela1
 
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdffundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdfAlihaAzmat1
 
BCS 100: Introduction to Computer Science Lesson 3
BCS 100: Introduction to Computer Science Lesson 3BCS 100: Introduction to Computer Science Lesson 3
BCS 100: Introduction to Computer Science Lesson 3Ndubi Amos
 
diploma basic of computers.ppt
diploma basic of computers.pptdiploma basic of computers.ppt
diploma basic of computers.pptLathaSrinivas5
 
Introduction to Computer System
Introduction to Computer System Introduction to Computer System
Introduction to Computer System sonykhan3
 
Transforming data into information
Transforming data into informationTransforming data into information
Transforming data into informationMaryam Fida
 
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2FabMinds
 
Computer architecture pptx
Computer architecture pptxComputer architecture pptx
Computer architecture pptxMDSHABBIR12
 
Chapter1 introduction to computer systems
Chapter1 introduction to computer systemsChapter1 introduction to computer systems
Chapter1 introduction to computer systemsMuhammad Waqas
 
Pre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsPre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsSMITA V MORE
 
Intro. to computer system
Intro. to computer systemIntro. to computer system
Intro. to computer systemdofirfauzi1302
 
CS304PC:Computer Organization and Architecture UNIT I.pdf
CS304PC:Computer Organization and Architecture UNIT I.pdfCS304PC:Computer Organization and Architecture UNIT I.pdf
CS304PC:Computer Organization and Architecture UNIT I.pdfAsst.prof M.Gokilavani
 
Intro to Computing Lec 1.pptx
Intro to Computing Lec 1.pptxIntro to Computing Lec 1.pptx
Intro to Computing Lec 1.pptxFalakNiaz15
 
Computer Concepts
Computer ConceptsComputer Concepts
Computer ConceptsPhoebe Kim
 
Hardware and software of computer
Hardware and software of computerHardware and software of computer
Hardware and software of computerSurath Khadka
 

Similar to An Introduction To Python - Understanding Computers (20)

Computer Fundamentals.pptx
Computer Fundamentals.pptxComputer Fundamentals.pptx
Computer Fundamentals.pptx
 
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdffundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
fundamentalofcomputers-postaldeptt-150308230655-conversion-gate01.pdf
 
Fundamental of Computers
Fundamental of ComputersFundamental of Computers
Fundamental of Computers
 
BCS 100: Introduction to Computer Science Lesson 3
BCS 100: Introduction to Computer Science Lesson 3BCS 100: Introduction to Computer Science Lesson 3
BCS 100: Introduction to Computer Science Lesson 3
 
diploma basic of computers.ppt
diploma basic of computers.pptdiploma basic of computers.ppt
diploma basic of computers.ppt
 
Introduction to Computer System
Introduction to Computer System Introduction to Computer System
Introduction to Computer System
 
Transforming data into information
Transforming data into informationTransforming data into information
Transforming data into information
 
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2
Python Programming | JNTUK | UNIT 1 | Lecture 1 & 2
 
Computer architecture pptx
Computer architecture pptxComputer architecture pptx
Computer architecture pptx
 
Chapter1 introduction to computer systems
Chapter1 introduction to computer systemsChapter1 introduction to computer systems
Chapter1 introduction to computer systems
 
Pre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsPre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systems
 
Intro. to computer system
Intro. to computer systemIntro. to computer system
Intro. to computer system
 
CS304PC:Computer Organization and Architecture UNIT I.pdf
CS304PC:Computer Organization and Architecture UNIT I.pdfCS304PC:Computer Organization and Architecture UNIT I.pdf
CS304PC:Computer Organization and Architecture UNIT I.pdf
 
Intro to Computing Lec 1.pptx
Intro to Computing Lec 1.pptxIntro to Computing Lec 1.pptx
Intro to Computing Lec 1.pptx
 
Lec 1 DPT
Lec 1 DPTLec 1 DPT
Lec 1 DPT
 
PC for Managers
PC for ManagersPC for Managers
PC for Managers
 
Computer Concepts
Computer ConceptsComputer Concepts
Computer Concepts
 
Hardware and software of computer
Hardware and software of computerHardware and software of computer
Hardware and software of computer
 
Lecture1 ch01
Lecture1 ch01Lecture1 ch01
Lecture1 ch01
 
Itc lecture
Itc lectureItc lecture
Itc lecture
 

Recently uploaded

Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

An Introduction To Python - Understanding Computers

  • 1. An Introduction To Software Development Using Python Spring Semester, 2015 Class #1: Understanding Computers
  • 2. An Example Python Job Description • Python developer (H3 Technologies, San Diego, CA, 5 months ago) • Job Description: Job Title : Sr. Software Engineer -Python And C++ • Location : San Diego ,CA; Duration : 6 Months+(Contract / Contract to Hire) • Job Description: – Python Developer – Desired skills: – Python and Python Packages and Libraries: NumPy, SciPy, Pickle – Relational and Non-Relational Database Technologies: SQL, MySQL, NoSQL, MonoDB, Cassandra – Practical working knowledge of Linux, C++ – Ability/Experience in optimization of Python 2.x and 3.x code for computational and I/O efficiency – Experience using web servers such as Apache or Tomcat in conjunction with Python – Familiar with XML
  • 3. What Is A Computer? Image Credit: ota_photos, Alex Lomix, yum9me, Kevin Wu CPU (Microprocessor) Memory (RAM: Random Access Memory) Hard Drive (Disk Drive) Keyboard (Input) Display (Output) A computer is an electronic device that stores and processes data. A computer includes both hardware and software. In general, hardware comprises the visible, physical elements of the computer, and software provides the invisible instructions that control the hardware and make it perform specific tasks.
  • 4. What Is A Bus? • A computer’s components are interconnected by a subsystem called a bus. • You can think of a bus as a sort of system of roads running among the computer’s components; data and power travel along the bus from one part of the computer to another. • In personal computers, the bus is built into the computer’s motherboard, which is a circuit case that connects all of the parts of a computer together Image Credit: LoveToKnow, Corp
  • 5. What Is A Central Processing Unit? • The central processing unit (CPU) is the computer’s brain. It retrieves instructions from memory and executes them. The CPU usually has two components: a control unit and an arithmetic/logic unit. • The control unit controls and coordinates the actions of the other components. The arithmetic/logic unit performs numeric operations (addition, subtraction, multiplication, division) and logical operations (comparisons). • Today’s CPUs are built on small silicon semiconductor chips that contain millions of tiny electric switches, called transistors, for processing information. Intel 4004, 1971, Clock rate 740kHz Intel 8086, 1978, Clock rate 10MHz Intel Pentium, 1993, Clock rate 66MHz Intel Core i7, 2011, Clock rate 4GHz Image Credit: Devraj Goswami
  • 6. What Goes Into A CPU? • Every computer has an internal clock, which emits electronic pulses at a constant rate. • The unit of measurement of clock speed is the hertz (Hz), with 1 hertz equaling 1 pulse per second. • In the 1990s computers measured clocked speed in megahertz (MHz), but CPU speed has been improving continuously and the clock speed of a computer is now usually stated in gigahertz (GHz). • CPUs were originally developed with only one core. The core is the part of the processor that performs the reading and executing of instructions. • In order to increase CPU processing power, chip manufacturers are now producing CPUs that contain multiple cores. Insides of the PS4 processor Multi-Core CPU
  • 7. How Is Information Stored In A Computer? • Both data and programs are stored in a computer. • A computer is really nothing more than a series of switches. Each switch exists in two states: on or off. Storing information in a computer is simply a matter of setting a sequence of switches on or off. If the switch is on, its value is 1. If the switch is off, its value is 0. • These 0s and 1s are interpreted as digits in the binary number system and are called bits (binary digits). Image Credit: sdobie 1 0
  • 8. The Binary Numbering System • In mathematics and digital electronics, a binary number is a number expressed in the binary numeral system, or base-2 numeral system, which represents numeric values using two different symbols: typically 0 (zero) and 1 (one). • Because of its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used internally by almost all modern computers and computer-based devices such as mobile phones. • Each digit is referred to as a bit.
  • 9. Binary Math Time! • 1 • 23 • 65 • 128 • 1,003 29 28 27 26 25 24 23 22 21 20 512 256 128 64 32 16 8 4 2 1 1 1 1 1 10 1111111111 1 10 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 1 0 1 1 512+256+128+64+32+16+8+4+2+1= 1023
  • 10. Bits Make Bytes • The minimum storage unit in a computer is a byte. A byte is composed of eight bits. A small number such as 23 can be stored as a single byte. To store a number that cannot fit into a single byte (1,003), the computer uses several bytes. 1 Byte = 00000000, 23 = 00010111, 1,003 = 00000011 11101011 • Data of various kinds, such as numbers and characters, are encoded as a series of bytes. As a programmer, you don’t need to worry about the encoding and decoding of data, which the computer system performs automatically, based on the encoding scheme. • An encoding scheme is a set of rules that govern how a computer translates characters, numbers, and symbols into data the computer can actually work with. • Most schemes translate each character into a predetermined string of numbers. In the popular ASCII encoding scheme, for example, the character A is represented as 1000001 in one byte.
  • 11. ASCII table “A” = 65 = 1000001
  • 12. How Big Is That Storage? • A computer’s storage capacity is measured in bytes and multiples of the byte, as follows: ■ A kilobyte (KB) is about 1,000 bytes. ■ A megabyte (MB) is about 1 million bytes. ■ A gigabyte (GB) is about 1 billion bytes. ■ A terabyte (TB) is about 1 trillion bytes. • A typical one-page word document might take 20 KB. Therefore, 1 MB can store 50 pages of documents and 1 GB can store 50,000 pages of documents. A typical two-hour high-resolution movie might take 8 GB, so it would require 160 GB to store 20 movies. Image Credit: shehan peruma
  • 13. Thanks For The Memories • A computer’s memory consists of an ordered sequence of bytes for storing programs as well as data that the program is working with. • A program and its data must be moved into the computer’s memory before they can be executed by the CPU. • Every byte in the memory has a unique address. The address is used to locate the byte for storing and retrieving the data. • Since the bytes in the memory can be accessed in any order, the memory is also referred to as random-access memory (RAM). • The current content of a memory byte is lost whenever new information is placed in it.
  • 14. Don’t Forget: Storage Devices • A computer’s memory (RAM) is a volatile form of data storage: any information that has been stored in memory (that is, saved) is lost when the system’s power is turned off. Note: an exception to this rule is flash memory – non-volatile memory that can be reprogramed. This is why some computers can remember where they were even after they were turned off • Programs and data are permanently stored on storage devices and are moved, when the computer actually uses them, to memory, which operates at much faster speeds than permanent storage devices can. – Magnetic disk drives – Optical disc drives (CD and DVD) – USB flash drives Image Credit: Gabriel Li
  • 15. Let’s Talk: Input / Output Devices Input Output Image Credit: angelcalzado, Sir Adavis
  • 16. Computers Use Networks To Talk With Each Other Image Credit: Emerson Posadas, All-free-download.com There are many different types of networks: LAN, WAN, WLAN, MAN, SAN, PAN, EPN & VPN
  • 17. What Is Software? Software means computer instructions or data. Anything that can be stored electronically is software, in contrast to storage devices and display devices which are called hardware. 10 Input “What is your name?” 20 Input name$ 30 Print “Hello”,name$ 40 Print “The current time is”, sys_time 50 End 00001011 01010101 11100111 10011001 11110001 10101110 10000001 01111110 10101010 10 Input “What is your name?” 20 Input name$ 30 Print “Hello”,name$ 40 Print “The current time is”, sys_time 50 End
  • 18. Programming Languages That Are Used To Create Software Computer programs, known as software, are instructions that tell a computer what to do Image Credit: ubergizmo
  • 19. Where It All Starts: Machine Language Image Credit: SlideShare Value Of AX 7 8 13 AX 13
  • 21. What We’ll Use: High Level Languages
  • 22. Everything Depends On The Operating System The operating system (OS) is the most important program that runs on a computer. The OS manages and controls a computer’s activities. The major tasks of an operating system are: • Controlling and monitoring system activities • Allocating and assigning system resources • Scheduling operations
  • 23. What We Covered Today 1. Learned what a computer is. 2. Discovered how CPUs have evolved over time. 3. Reviewed the binary numbering system. 4. Reviewed different types of computer storage. 5. Studied the different levels of computer programming: machine, assembly, and higher- level. Image Credit: http://www.tswdj.com/blog/2011/05/17/the-grooms-checklist/
  • 24. What We’ll Be Covering Next Time 1. Software 2. Programming Image Credit: http://merchantblog.thefind.com/2011/01/merchant-newsletter/resolve-to-take-advantage-of-these-5-e-commerce-trends/attachment/crystal-ball-fullsize/

Editor's Notes

  1. New name for the class I know what this means Technical professionals are who get hired This means much more than just having a narrow vertical knowledge of some subject area. It means that you know how to produce an outcome that I value. I’m willing to pay you to do that.
  2. Computers do not understand human languages, so programs must be written in a language a computer can use. There are hundreds of programming languages, and they were developed to make the programming process easier for people. However, all programs must be converted into a language the computer can understand.
  3. A computer’s native language, which differs among different types of computers, is its machine language—a set of built-in primitive instructions. These instructions are in the form of binary code, so if you want to give a computer an instruction in its native language, you have to enter the instruction as binary code.
  4. Programming in machine language is a tedious process. Moreover, programs written in machine language are very difficult to read and modify. For this reason, assembly language was created in the early days of computing as an alternative to machine languages. Assembly language uses a short descriptive word, known as a mnemonic, to represent each of the machine-language instructions. Assembly languages were developed to make programming easier. However, because the computer cannot understand assembly language, another program—called an assembler—is used to translate assembly-language programs into machine code. Writing code in assembly language is easier than in machine language. However, it is still tedious to write code in assembly language. An instruction in assembly language essentially corresponds to an instruction in machine code. Writing in assembly requires that you know how the CPU works. Assembly language is referred to as a low-level language, because assembly language is close in nature to machine language and is machine dependent.
  5. In the 1950s, a new generation of programming languages known as high-level languages emerged. They are platform-independent, which means that you can write a program in a high level language and run it in different types of machines. High-level languages are English-like and easy to learn and use. The instructions in a high-level programming language are called statements. There are many high-level programming languages, and each was designed for a specific purpose. A program written in a high-level language is called a source program or source code. Because a computer cannot understand a source program, a source program must be translated into machine code for execution. The translation can be done using another programming tool called an interpreter or a compiler. An interpreter reads one statement from the source code, translates it to the machine code or virtual machine code, and then executes it right away. Note that a statement from the source code may be translated into several machine instructions. A compiler translates the entire source code into a machine-code file, and the machine-code file is then executed
  6. The popular operating systems for general-purpose computers are Microsoft Windows, Mac OS, and Linux. Application programs, such as a Web browser or a word processor, cannot run unless an operating system is installed and running on the computer. Controlling and Monitoring System Activities Operating systems perform basic tasks, such as recognizing input from the keyboard, sending output to the monitor, keeping track of files and folders on storage devices, and controlling peripheral devices, such as disk drives and printers. An operating system must also ensure that different programs and users working at the same time do not interfere with each other. In addition, the OS is responsible for security, ensuring that unauthorized users and programs do not access the system. Allocating and Assigning System Resources The operating system is responsible for determining what computer resources a program needs (such as CPU time, memory space, disks, input and output devices) and for allocating and assigning them to run the program. Scheduling Operations The OS is responsible for scheduling programs’ activities to make efficient use of system resources. Many of today’s operating systems support such techniques as multiprogramming, multithreading, and multiprocessing to increase system performance.