CS0 101 : Computer Programming
Instructor
Dr. Bidyut Kr. Patra, Associate Professor
Department of Computer Science & Engineering
1
3/16/2023
How the courses are run?
2
3/16/2023
Objectives
C program.
3
3/16/2023
Evaluation Criteria (May be modified)
Theory (80%)
Laboratory (20%):
4
3/16/2023
Books and Course Page
5
3/16/2023
Lab. Part
Use ANSI C (Standard C).
6
3/16/2023
Policies, Guidelines,…
7
3/16/2023
Introduction: Computer
8
3/16/2023
9
3/16/2023
Memory, etc.
OS: Interface between hardware & user.
Compiler: Translates from high level language to machine Language.
Tools: Internet access, Voice, Video, Games, etc.
Hardware and Software
Computer (Conceptually)
10
3/16/2023
An Example
Work to be done: Buy 1 kg Alu.
Sequence of Steps:
11
3/16/2023
A Model ( Human)
12
3/16/2023
Early Computers
Drawback: No flexibility
13
3/16/2023
Stored-Program Computers
14
3/16/2023
Von Neumann Architecture
15
3/16/2023
Are there other architectures?
16
3/16/2023
What you have to do?
17
3/16/2023
Your first lab exercise
int main()
{
printf(“ Hello IIT(BHU)”);
return 0;
}
18
3/16/2023
How to Run a Program
19
3/16/2023
Homework
20
3/16/2023
Your 2nd lab exercise
int main( )
{
int a, b;
printf(“Enter an integer value for variable a:”);
scanf(“%d”, &a);
printf(“Enter an integer value for variable b:”);
scanf(“%d”, &b);
printf(“a+b = %d\n”, a+b);
return 0;
}
21
3/16/2023
Next Class …
22
3/16/2023