Module 1 - Introduction To Computing Programming
Module 1 - Introduction To Computing Programming
Computer Programming
BITS Pilani Dr. Tejasvi Alladi
Pilani Campus
Department of Computer Science & Information Systems
Module Overview
• General course information
• Introduction to Programming
• The C language
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Text Book and Reference Books
Text Book:
Hanly, J.R. and E.B. Koffman. Problem Solving and Program Design in C(7/e).
Pearson Education, 2013
Reference Books:
1. Patt, yale. Introduction to computing systems: from bits & gates to C
&beyond (2/e). Mcgraw hill education, 2017.
2. Forouzan, b.A. And richard F. Gilberg . computer science A structured
programming approach using C (3/e). Cengage learning, 2007
3. Gottfried, B.S. and Jitender chhabra. Programming with C (schaum's
outlines series, 3/e). Mcgraw hill education, 2017.
4. Kernighan, b.W and dennis ritchie. The C programming language (2/e).
Pearson education india, 2015.
5. Das, s. Unix: concepts and applications (4/e). Mcgraw hill education, 2017.
6. Das, Sumitabha. Computer fundamentals and C programming. New delhi,
india: mcgraw hill education. (2018)
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Course Website
Course Website
• Nalanda – LMS of BITS Pilani
• https://nalanda-aws.bits-pilani.ac.in/
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Laboratory Sessions
Laboratory Sessions
• Weekly 2 hours. Total 13 lab sessions starting from August 21,
Monday. First 3 labs will be non-evaluative.
• The best 8 of remaining 10 labs will be considered for grading, with
each lab carrying 3 marks.
• Each lab session will have a lab sheet.
• You will have to go through the lab sheet and do the given tasks.
• You will be assisted by a team of 3-4 instructors who would help
you solve the lab sheets and clarify your doubts.
• Lab sessions will be conducted on Ubuntu OS in the IPC/CSIS Dept.
labs. C Programs are to be run using GCC compiler only.
• For home practice - install WSL on your personal computers, along
with the gcc compiler and sublime text editor [DIY] or Ubuntu OS
• Links for video tutorials of lab sheets: shorturl.at/tOWZ1
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Evaluation Components
Nature of
component
Component Duration Marks Date & Time
(Close Book/ Open
Book)
Mid-Semester Test 90 Min. 60 12/10 FN2 Closed Book
Comprehensive
180 Min. 100 13/12 AN Closed Book
Examination
Quiz 40 Min. 30 23/09 Closed Book
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Makeup Policy
• Make-ups are generally considered only for medical emergencies
leading to hospitalization (or a personal emergency of similar
nature).
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Disciplinary Policy
• If we find you using unfair means during the evaluative
components, the case will be reported to AUGSD and shall be
dealt with very seriously as per the guidelines.
• You can find the AUGSD guidelines for unfair means cases over
here –
https://academic.bits-
pilani.ac.in/Downloads/Unfair_Means_Offence_Revised_02_AUG_2022.pdf
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
BITS Pilani
Pilani Campus
Course Objectives
Course Objectives
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.
Cost and
Size Cache (inbuilt on the Speed
processor)
Registers, Cache and RAM
are volatile
• Retains data as long as the
Primary (RAM, ROM) voltage is applied
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
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?
2. What happens to your program when you try to compile and run it?
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Operating System (OS)
• An OS is a layer of
software interposed User
between the 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?
2. What happens to your program when you try to compile and run it?
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
1. Where is your program saved?
Program
Primary Memory
(RAM)
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
What happens to your program?
2. What happens to your program when you try to compile and run it?
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