Module 1 - Introduction To Computing Programming
Module 1 - Introduction To Computing Programming
Computer Programming
Dr. Jagat Sesh Challa
BITS Pilani Dr. Amitesh Singh Rajput
Pilani Campus
Department of Computer Science & Information Systems
Module Overview
• General course information
• Introduction to Programming
• The C language
TAs
Sakshi, Vijay Kumari, Ankit Soni, Praveen Kumar, Abhishek Vyas, Neha Chaudhary
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Evaluation Components
Nature of
Weightage Date & component
Component Duration
(%) Time (Close Book/ Open
Book)
Mid-Semester Test 90 Min. 25 TBA TBA
Comprehensive
120 Min. 35 TBA TBA
Examination
Quizzes /
-- 30 TBA Open Book
Programming test
Laboratory Sessions -- 10 -- --
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
Laboratory Sessions & Course Website
Laboratory Sessions
• Weekly 2 hours
• Lab sessions on Ubuntu – install OS or VM or WSL on your
machines [DIY]
Course Website
• Nalanda – LMS of BITS Pilani
• https://nalanda-aws.bits-pilani.ac.in/
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
Computer
• A device that takes data as input, does some processing and
then returns an output
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Types of Memory
Secondary (HDD,
FlashMemory)
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
BITS Pilani
Pilani Campus
Introduction to Programming
What is a Program?
Program
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Levels of Programming
Languages
Machine language
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Machine Language
• Difficult to learn
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Assembly Language
architecture
Machine language
• Requires assembler
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
High level Language
• English-like
• Easier
High Level Language
Ease of
Assembly Language understanding
• Requires Compiler
Machine language
• Compiler: Generates object
code
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Example
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
Questions from previous class
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
BITS Pilani
Pilani Campus
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
BITS Pilani
Pilani Campus
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 between the application
program and the hardware
OS
Manages
these
resources
CPU Disk
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?
Your program
when saved gets
stored on the
disk
Program
CPU DISK
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
on CPU loaded
CPU into RAM DISK
Dept. of Computer Science & Information Systems, BITS Pilani, Pilani Campus
BITS Pilani
Pilani Campus