0% found this document useful (0 votes)
155 views

Fundamentals of Computer Programming 21CSH-101

This document provides information on the course "Fundamentals of Computer Programming" including the course code, pre-requisites, objectives, outcomes, syllabus, textbooks, and assessment. The course introduces basic programming concepts and teaches students how to apply loops and arrays to solve complex problems. The syllabus covers topics like decision making, loops, arrays, functions, pointers, and structures over three units totaling 30 contact hours. Students will complete practical assignments applying concepts from each unit.

Uploaded by

Ankit Panigrahi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
155 views

Fundamentals of Computer Programming 21CSH-101

This document provides information on the course "Fundamentals of Computer Programming" including the course code, pre-requisites, objectives, outcomes, syllabus, textbooks, and assessment. The course introduces basic programming concepts and teaches students how to apply loops and arrays to solve complex problems. The syllabus covers topics like decision making, loops, arrays, functions, pointers, and structures over three units totaling 30 contact hours. Students will complete practical assignments applying concepts from each unit.

Uploaded by

Ankit Panigrahi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

S 21CSH-101 Fundamentals of Computer Programming L T P S C C Course Type

N H
1 0 2 4 0 4 6 PC
Course Code(s)
PRE-REQUISITE Basic knowledge of Mathematics
CO-REQUISITE Fundamentals of Computer Science 21CSTXXX
ANTI-REQUISITE None

a. Course Description

The course begins with the introduction to Basic concepts of programming and its applications in
numerous fields. After covering fundamentals, students will learn how to apply the more complex
concepts including loops and arrays in order to solve the complex real-world problems.

b. Course Objectives
i. The course aims to provide exposure to problem-solving through programming.
ii. The course aims to raise the programming skills of students via logic building capability.
iii. With knowledge of C programming language, students would be able to model real world problems.

c. Course Outcomes
CO1 Remember the concepts related to fundamentals of C language, draw flowcharts and write
algorithm/pseudocode.
CO2 Understand the way of execution and debug programs in C language.
CO3 Apply various constructs, loops, functions to solve mathematical and scientific problem.
CO4 Analyze the dynamic behavior of memory by the use of pointers.
CO5 Design and develop modular programs for real world problems using control structure and selection structure.

d. Syllabus Theory
UNIT-1 INTRODUCTION TO BASIC BUILDING BLOCKS TO PROGRAMMING Contact Hours:10
Introduction Flow charts and Algorithms, Memory layout of a C program.
Fundamentals of C Features & Applications of C language, structure of writing a C Program, I/O functions in C,
Indentation, Comments, Header Files, Data Types, Constants and Variables, Operators,
Expressions, Evaluation of expressions, Type Conversion, Precedence and Associativity.
Decision Control Decision making statements (if, if-else, if-else-if, switch), nesting of decision control structures.
structure in C
UNIT-2 DEALING WITH REAL-WORLD PROBLEMS Contact Hours:10
Loop Control structure Looping statements (for, while, do-while), nested loop, use of jumping statements (goto, break,
in C continue).
Array & String Concepts of array, one- and two-dimensional arrays, declaration and initialization of arrays,
searching and sorting, string handling, string storage.
Functions Concepts of library functions, Built-in-string functions, user defined functions, prototypes,
definition of function, parameters types, parameter passing, calling a function, recursive
function, Macros.
UNIT-3 HANDLING HETEROGENEOUS DATA AND MEMORY Contact Hours:10
MANAGEMENT          

Pointers Pointers: Basics of pointers, double pointer, pointer and array, pointer to array, array of
pointers, functions returning a pointer, storage classes.
Structures Structure: Basics of structure, structure members, structure vs. union, accessing structure
members, nested structures, array of structures, structure and functions, structures and
pointers.
Dynamic memory Introduction to Dynamic memory allocation, malloc, calloc, realloc.
allocation

Self-Study Topics:

 Applications of C language (Unit I)

 Difference between functions and recursive functions (Unit II)

 Structure vs. Union (Unit III)

Advance Topics:

 Advanced preprocessor directive

 Command line arguments

 Debugging the code

e. Textbooks / Reference Books

TEXT BOOKS
i. T1 Programming in ANSI C by E. Balaguruswamy, Tata McGraw Hill, 2nd Edition, 2017.
ii. T2 Programming in C Ansi standard, by Yashwant Kanetkar, BPB Publications, 2010.

REFERENCE BOOKS
i. R1 Programming with C (Schaum's Outline Series) by Byron Gottfried Jitender Chhabra, Tata McGraw Hill, 4th
Edition, 2017.
ii. R2 C Programming Language by Brian W. Kernighan, Dennis Ritchie, Pearson education, 2nd Edition, 2015.
iii. R3 C How to program by Harvey Deital, 8th edition, 2011.

f. Syllabus Practical

Unit-1 INTRODUCTION TO BASIC BUILDING BLOCKS TO PROGRAMMING Contact Hours: 20


1 1.1 Write a program that reads two nos. from key board and gives their addition, subtraction, multiplication,
division and modulo.
1.2 The distance between two cities (In KM) is input through key board. Write a program to convert and
print this distance in meters, feet, inches & centimeters.
2 2.1 WAP which implements the working of all Bit-wise operators.
2.2 WAP to find largest out of three numbers by using ternary operator.
2.3 WAP to check whether entered year is leap or not.
Note: For century year, check number by 400 instead 4.
3 3.1 WAP to Find out the Roots of a Quadratic Equation.
3.2 WAP to print grade of a student based on marks of 5 subjects entered by user.
3.3 Write a menu driven program that allow the user to perform any one of the following operations based
on the input given by user
a. check number is even or odd
b. check number is positive or negative
c. printing square of the number
d. printing square root of the number
Unit-2 DEALING WITH REAL-WORLD PROBLEMS Contact Hours: 20
4 4.1 WAP to find sum of all integers greater than 100 & less than 200 and are divisible by 5.
4.2 Write a C program to evaluate e^x=1+x/1!+x^2/2!+x^3/3!+⋯,
4.3 Write a program to print series of arm-strong numbers from m to n. m, n will be input by user.
Armstrong are those numbers where number= sum of cubes of digits.
5 5.1 Write a program to search an element from an array.
5.2 Write a program to perform various matrix operations Addition, Subtraction, Multiplication, Transpose
using switch-case statement.
6 6.1 Write a program to illustrate various string inbuilt functions (strrev, strcmp, strlen, strcpy, strcat…)
6.2 Write user defined functions for all the inbuilt functions of the above Program.
7 7.1 Illustrate the concept of call by value vs. call by reference by taking example of swapping of two
numbers.
7.2 Write a recursive function for computing factorial of a number. Write main to test its functioning.
Unit-3 HANDLING HETEROGENEOUS DATA AND MEMORY MANAGEMENT           Contact Hours: 20

8 8.1 WAP to read an array of elements and print the same in the reverse order along with their addresses.
8.2 Write a function code that is returning pointer to the larger value out of two passed values.
9 9.1 Define a structure type, personal, that would contain person name, date of joining and salary. Using this
structure, write a program to read this information for one person from the key board and print the same
on the screen.
9.2 What will the difference if above program is going to be implemented through union. Implement the
same program through union and differentiate the output as well as memory allocation.
10 10.1 WAP to store a character string in block of memory space created by malloc and then modify the same
to store a large string.

g. Assessment Pattern - Internal and External


h. CO-PO Mapping:

PO PO1 PSO1 PSO2


  PO1 PO2 PO3 PO5 PO6 PO7 PO8 PO9 PO10 PO12
4 1

CO1 2 2 2 0 0 0 0 0 1 0    0 2 2 0

CO2 2 2 2 0 0 0 0 0  1  0   0 2 2 0

CO3 3 3 3 0 0 0 0 0  2  0    1 3 3 0

CO4 3 3 3 0 0 0 0 0  2  0    2  3 3 0

CO5 3 3 3 2 0 0 0 0  2  0    2  3 3 0

CO PO correlation matrix of each subject to be mapped with


High correlation (3)
Medium correlation (2)
Low correlation (1)

You might also like