Module 1 - Introduction To Computing Programming
Module 1 - Introduction To Computing Programming
to Computer
BITS Pilani Programming
Pilani Campus
Department of Computer Science & Information Systems
Module Overview
• Introduction to Programming
• The C language
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
BITS Pilani
Pilani Campus
Course Objectives
Course Objectives
• Learn about Computers and Computing Methodologies
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
BITS Pilani
Pilani Campus
Desktop Laptop
Computer Computer
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Smart Devices (Small
Computers)
Smart Phone
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Super Computer…
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
What is a Computer?
A device that takes data as input, does some processing and then
returns an output.
CPU
Control
Unit
Input Output
ALU
Memory
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
What is a CPU?
• CPU stands for Central Processing Unit.
• The CPU is often simply referred to as the
processor.
• The CPU is the brain of a computer, containing
all the electronic circuitry needed to process
input, store data, and output results.
• Essentially CPU executes computer
programs.
• It consists of an arithmetic and logic unit (ALU),
and a control unit
• ALU performs arithmetic and logical Intel i7
operations specified by a computer program
Processor
• Control Unit directs the operations of the
Processor
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
What is memory?
• Computer memory is the storage space in the computer,
where “data to be processed” and “instructions required for
processing” are stored.
Introduction to Programming
What is a Computer
Program?
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Where are Programs Used?
• MS Word is a Program
• Skype is a Program
• Hawk’s-eye is a Program
• Windows OS is a Program
Machine language
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Machine Language
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Assembly Language
abbreviations
Machine language
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
High level Language
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
What happens to your
program?
You write a program…
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Operating System (OS)
• An OS is a layer of software
interposed between the User
application programs and
the hardware
Application
• OS manages everything on
your computer including
hardware Operating System
• OS is responsible for
executing your program Hardware
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Basic layout of Computer Hardware
OS Manages these
resources
Primary
Memory (RAM)
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
What happens to your
program?
Now let us answer these questions…
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
1. Where is your program
saved?
Your program when
saved gets stored on
the disk
Program
Primary
Memory (RAM)
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
What happens to your
program?
Now let us answer these questions…
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
2. What happens to your program
when you try to compile and run it?
• OS loads the
program into RAM
• Executes it line by
line on CPU
Program
Program Program
Program is Program
executed gets
CPU on CPU loaded Disk (Secondary
into RAM Memory)
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
BITS Pilani
Pilani Campus
Thank you
Q&A