Introduction To Computer Programming CSIR11
Introduction To Computer Programming CSIR11
CSIR11
• COURSE LEARNING OBJECTIVES
• To learn the fundamentals of computers.
• To learn the problem-solving techniques writing algorithms &
procedures.
• To learn the syntax and semantics for C programming language.
• To develop the C code for simple logic.
• To understand the construct of structure program including
conditionals and iterations
COURSE CONTENT
• Introduction to computers - Types of programming languages-
Developing a program - Algorithms- Characteristics- Flow Charts-
Principles of structured programming- Sequential selecting structures-
Repetitive Structures-Bounded, Unbounded and Infinite iterations.
• Introduction to C- C character set- Identifiers and Keywords- Data types-
Constants- Variables- Declarations- Expressions- Statements- Symbolic
Constants- Operators- Library Functions- Data input and output: Single
character input and output- Entering input data- Writing output data-
gets and puts functions - Control Statements- Branching: if-else-looping:
while- do-while-for; Nested control Structures- switch statements- Break
statements- Continue Statements-Comma operator- goto statements.
COURSE CONTENT
• Modular Programming- Functions and Procedures - Examples- Parameters
passing methods - Arrays- Defining an array- Processing an array- Multi
dimensional arrays- Pointers- Variables definitions and initializations- Pointer
operators- Pointer expressions and arithmetic- Pointers and one dimensional
arrays - String operations.
• Functions- Defining function- Accessing a function- Function prototypes-
Passing arguments to a functions- Passing arrays to a function- Passing
Pointers to function- Recursion – Dynamic memory allocation - malloc, calloc,
realloc – Structures – Declaration – Structures and Functions – Arrays of
Structures – Pointers to structures – Typedef - Unions – Bit-fields.
• Files – Input / Output using files – fread, fwrite, fprintf, fscanf – Formatted
input – File access - argc, argv.
REFERENCE BOOKS
1. Byron Gottfried, Programming with C, 3rd Edition, Tata McGraw Hill
Education, 2010.
2. R.G. Dromey, How to solve it by Computers? Prentice Hall, 2011.
3. Brian W Kernighan and Dennis Ritchie, The C Programming language,
2nd Edition, Prentice Hall, 1988.
4. J.R.Hanly and E.B. Koffmann, Problem Solving and Program design in C,
6th Edition, Pearson Education, 2009.
5. Paul Deital and Harvey Deital, C How to Program? 7th Edition, Prentice
Hall, 2012.
6. YashvantKanetkar, Let Us C, 12th Edition, BPB Publications, 2012.
COURSE OUTCOME
• Ability to write algorithms for problems
• Knowledge of the syntax and semantics of C programming language
• Ability to code a given logic in C language
• Knowledge in using C language for solving problems
CSIR11-INTRODUCTION TO
COMPUTER PROGRAMMING
UNIT I
(Introduction to computers - Types of programming languages- Developing a program -
Algorithms- Characteristics- Flow Charts-Principles of structured programming- Sequential
selecting structures- Repetitive Structures-Bounded, Unbounded and Infinite iterations.)
DATE: 29/08/2023
Computer
• Computer : is an electronic device that operates
(works) under the control of programs stored in its own
memory unit.
A computer is an electronic machine that processes
raw data to give information as output.
Hardware is a physical part of the computer that Software is a set of instructions that tells a computer exactly
1. Basic Definition causes the processing of data. what to do.
Difference
2.
3.
Development
Dependency
It is manufactured. It is developed and engineered.
Hardware cannot perform any task without software. The software can not be executed without hardware.
Hardware is tangible as hardware is a physical Software is intangible as we can see and also use the software
5. Tangible electronic device, that can be touched. but can’t touch them.
The software does not wear out with time. However, it may
6. Durability Hardware typically wears out over time. contain flaws and glitches.
It has four main categories: input devices, It is mainly divided into System software and
7. Types output devices, storage, and internal components. Application software.
8. Virus effect Hardware is not affected by computer viruses. Software is affected by computer viruses.
Machine-Level Only machine-level language is known to be The program accepts human-readable input, interprets it in
10. machine-level language, and sends it to hardware for additional
language understood by hardware. processing.
Dust, overheating, humidity and other factors are Overloading, systematic error, major-minor version error, and
12. Failures commonly responsible for hardware failures. other factors are commonly responsible for software failures.