Shri Vile Parle Kelavani Mandal’s
SVKM NMIMS Global University, Dhule
School of Technology, Management & Engineering
Program: B. Tech. (Computer Engineering) Semester: I
Course: DJS23FCES101 Structured Programming Code: BAST25EC01
using C
Teaching Scheme (Hrs./Week) Evaluation Scheme and Marks
Credit
Lecture Practical Tutorial ESE Total
TT1 TT2 Ass
02 02 - - 15 15 10 60 100
Prior knowledge of
Course Objectives:
This course aims at enabling students:
1. To familiarize with the logic of Computer Programming.
2. To provide exposure in developing algorithm, flowchart and thereby writing efficient
3. codes for user defined problem.
Course Outcomes:
On completion of the course, the learner will be able to:
1. Implement the programs in C.
2. Debug the C programs
Detailed Syllabus
Unit Description Duration
(H)
INTRODUCTION TO COMPUTER, ALGORITHM AND 7
FLOWCHART:
1.1 The turing machine architecture, the von Neumann architecture,
I Number system
1.2 Introduction to operating sytsem components
1.3 System and application software
1.4 Algorithm & Flowchart:
Three constructs of Algorithm and flowchart: Sequence, Decision
(Selection) and Repetition, Compilation process: Syntax and semantic
errors,
FUNDAMENTALS OF C-PROGRAMMING:
1.1 Character Set, Identifiers and keywords, Data types, Constants,
Variables.
1.2 Operators-Arithmetic, Relational and logical, Assignment, Unary,
Conditional, Bitwise, Comma, and other operators. Expression,
statements, Library Functions, Preprocessor.
1.3 Data Input and Output – getchar (), putchar (), scanf (), printf (),
gets (), puts (), Structure of C program.
CONTROL STRUCTURES: 5
2.1 Decision making with Branching - If statement, If-else Statement,
Curriculum F.Y. B.Tech. (Common to All)
Page 1
Shri Vile Parle Kelavani Mandal’s
SVKM NMIMS Global University, Dhule
School of Technology, Management & Engineering
Switch case statement
II 2.2 Looping – while, do-while, for
2.3 Nested control structure
2.4 Continue statement, Break statement, goto statement.
FUNCTIONS AND PARAMETER: 3
3.1 Function -Introduction of Function, defining a Function,
III accessing a Function, Function Prototype, Passing Arguments to a
Function, Designing Recursive function
3.2 Storage Classes –Auto, Extern, Static, Register
ARRAYS, STRING, STRUCTURE: 7
IV 4.1 Array-Concepts, Declaration, Definition, accessing array element,
One- dimensional and Multidimensional array, Passing Arrays to
Function
4.2 String- Basics of String, Functions in string.h, user defined
function for string handling
4.3 Structure- Declaration, Initialization, structure within structure,
Operation on structures, Array of Structure, Structure padding.
POINTERS: 4
5.1 Introduction, Definition and uses of Pointers, Address Operator,
Pointer Variables
V 5.2 Pointer Arithmetic
5.3 Call by value, call by Reference
Total 26
Text Books:
1. MASTERING C” by K.R.Venugopal and Sudeep R.Prasad , Tata McGraw-Hill
Publications.
2. “A Computer Science –Structure Programming Approaches using C”, by Behrouz
Forouzan, Cengage Learning.
3. Schaum’s outlines “Programming with C”, by Byron S. Gottfried, Tata McGraw-
Hill Publications.
Reference Books:
1. “Basics of Computer Science”, by BehrouzForouzan , Cengage Learning.
2. “Programming Techniques through C”, by M. G. Venkateshmurthy, Pearson
Publication.
3. “Programming in ANSI C”, by E. Balaguruswamy, Tata McGraw-Hill Education.
4. “Programming in C”, by Pradeep Day and Manas Gosh, Oxford University Press.
5. “Let Us C”, by Yashwant Kanetkar, BPB Publication. Dr. Guruprasad Nagraj, “C
Programming for Problem Solving”, Himalaya Publishing House. ISBN-978-93-
5299-361-1.
6. K R Venugopal, Sudeep R Prasad, Mastering C, McGraw-Hill Education, 2019
ISBN 9332901287, 9789332901285
Curriculum F.Y. B.Tech. (Common to All)
Page 2
Shri Vile Parle Kelavani Mandal’s
SVKM NMIMS Global University, Dhule
School of Technology, Management & Engineering
e-sources: NPTEL/SWAYAM Course
1. Introduction to programming in C by Prof. Satyadev Nandakumar, IIT Kanpur.
2. Problem solving through programming in C by Prof. Anupam Basu, IIT Kharagpur.
Program: B. Tech. (Computer Engineering) Semester: I
Course: DJS23FCES101 Structured Programming Code: BAST25EC02
Curriculum F.Y. B.Tech. (Common to All)
Page 3
Shri Vile Parle Kelavani Mandal’s
SVKM NMIMS Global University, Dhule
School of Technology, Management & Engineering
using C Lab
Teaching Scheme (Hrs./Week) Evaluation Scheme and Marks
Credit Lecture Practical Tutorial TW PR Total
01 - 01 - 25 25 50
Prior knowledge of Basic computer, mathematical fundamentals, logical thinking, problem-
solving skills, understanding of algorithms, and familiarity with loops, functions, and a text
editor/IDE.
Course Objectives:
This course aims at enabling students:
1. To develop problem-solving skills using flowcharts, algorithms, and pseudocode for
structured program design.
2. To implement fundamental programming constructs such as loops, decision-making,
functions, and arrays in C.
3. To apply concepts of structures, pointers, and file handling for efficient data storage and
retrieval.
4. To develop sorting and searching algorithms to enhance computational efficiency in
problem-solving.
5. To improve logical thinking and coding proficiency through assignments from
competitive coding platforms like HackerRank and CodeChef.
Course Outcomes:
After learning the course, the students will be able to:
CO1 Design and implement flowcharts, algorithms, and pseudocode for problem-solving.
CO2 Develop C programs using control statements, functions, arrays, and pointers to solve
mathematical and real-world problems.
CO3 Implement data structures such as structures and perform file handling operations for data
management.
CO4 Apply sorting and searching algorithms to optimize program efficiency.
CO5 Solve programming challenges from competitive coding platforms to enhance logical and
analytical skills.
Guidelines for Laboratory Conduction:
1. Assignments in Group A are mandatory.
2. Any one Assignments from Group B and Group C should be implemented, recommended on
coding
platforms such as Hacker Rank, CodeChef.
3. Encourage students for appropriate use of Hungarian notation, proper indentation and
comments.
4. Use of open-source software is to be encouraged.
5. Operating System recommended: - 64-bit Open-source Linux or its derivative.
6. Programming tools recommended: -GCC, Turbo C/C++,Eclipse.
Expt. Suggested List of Experiments
No.
1 Write a program to swap two variables values with and without using third variables.
Curriculum F.Y. B.Tech. (Common to All)
Page 4
Shri Vile Parle Kelavani Mandal’s
SVKM NMIMS Global University, Dhule
School of Technology, Management & Engineering
Write algorithm and draw flowchart for the same.
2 Write a program to check odd or even number:
(a) using modulus operator (b) using conditional operator.
3 Design and develop a C program to read a year as an input and find whether it is leap
year or not. Also consider the end of the centuries. Write algorithm and draw
flowchart for the same.
4 Write a C program to find the sum of individual digits of a 3-digit number.
5 Design and develop a flowchart or an algorithm that takes three coefficients (a, b, and
c) of a Quadratic equation (ax2 +bx+c=0) as input and compute all possible roots.
Implement a C program for the developed flowchart/algorithm and execute the same
to output the possible roots for a given set of coefficients with appropriate messages.
6 Write a program to count the number of digits in a given integer.
7 Write a menu driven program to perform simple arithmetic operations based on the
user's choice. The user will indicate the operation to be performed using the signs e.g.
+ for addition, etc. Write an algorithm and draw flowchart for same.
8 Write a program to read a number of more than one digit, reverse the number and
display the sum of digits of numbers. Write algorithm and draw flowchart for the
same.
9 Write programs to display each of the following patterns.
A)1 B) A
21 ABA
321 ABCBA
4321 ABCDCBA
54321 ABCDEDCBA
10 Write a C program to find maximum and minimum between two numbers using
functions. Write algorithm and draw flowchart for the same.
11 Write C program to find GCD of two integers by using recursive function.
12 Write a C program to find both the largest and smallest number in a list of integers.
Write algorithm and draw flowchart for the same.
13 Develop, implement and execute a C program that reads two matrices A (m x n) and
B (p x q) and Compute product of matrices A and B. Read matrix A and matrix B in
row major order and in column 14 15 16 17 18 19 20 major order respectively. Print
both the input matrices and resultant matrix with suitable headings and output should
be in matrix format only.
14 Write a Program for deletion of an element from the specified location from Array.
15 Write a C program using user defined functions to determine whether the given string
is palindrome or not.
16 Write C program to count the number of lines, words and characters in a given text.
17 Write a program to swap two numbers using a function. Pass the values to be
swapped to this function using the call-by-value method and call-by-reference
method.
18 Write a C program to find the length of the string using Pointer.
19 Write a program to copy one array to another using pointer.
20 Write a program to compare two strings using Pointer.
Text Books:
Curriculum F.Y. B.Tech. (Common to All)
Page 5
Shri Vile Parle Kelavani Mandal’s
SVKM NMIMS Global University, Dhule
School of Technology, Management & Engineering
1. MASTERING C” by K.R.Venugopal and Sudeep R.Prasad , Tata
McGraw-Hill Publications.
2. “A Computer Science –Structure Programming Approaches using C”, by
Behrouz Forouzan, Cengage Learning.
3. Schaum’s outlines “Programming with C”, by Byron S. Gottfried, Tata
McGraw- Hill Publications.
Reference Books:
1. “Basics of Computer Science”, by BehrouzForouzan , Cengage Learning.
2. “Programming Techniques through C”, by M. G. Venkateshmurthy,
Pearson
Publication.
3. “Programming in ANSI C”, by E. Balaguruswamy, Tata McGraw-Hill
Education.
4. “Programming in C”, by Pradeep Day and Manas Gosh, Oxford
University Press.
5. “Let Us C”, by Yashwant Kanetkar, BPB Publication. Dr. Guruprasad
Nagraj, “C Programming for Problem Solving”, Himalaya Publishing
House. ISBN-978-93-5299-361-1.
6. K R Venugopal, Sudeep R Prasad, Mastering C, McGraw-Hill
Education, 2019 ISBN 9332901287, 9789332901285
e-sources: NPTEL/SWAYAM Course
1. Introduction to programming in C by Prof. Satyadev Nandakumar, IIT
Kanpur.
2. Problem solving through programming in C by Prof. Anupam Basu, IIT
Kharagpur.
Curriculum F.Y. B.Tech. (Common to All)
Page 6