CURRICULUM AND SYLLABUS FIRST YEAR ENGINEERING
SEMESTER 2
Course Course Hours/week Credits
Course Total
Type Code L T P L T P Credits
24ETBS
BS Mathematics - II 3 1 0 3 1 0 4
201
24ETBS
BS Applied Chemistry 3 0 2 3 0 1 4
103
24ETES
ES Electrical Engineering 2 0 2 2 0 1 3
102
24ETES
ES Engineering Mechanics 2 0 2 2 0 1 3
201
24ETES Programming and
ES 2 0 2 2 0 1 3
202 Problem Solving
Mathematics in India: From
24ETIK
IK Vedic Period to Modern 0 2 0 0 2 0 2
201
Times
24ETVS
VS Mini Project - II 0 0 4 0 0 2 2
201
24ETLL
LL Co-Curricular - II 0 0 2 0 0 1 1
201
Total 12 3 14 12 3 7 22
20
CURRICULUM AND SYLLABUS FIRST YEAR ENGINEERING
24ETES202: PROGRAMMING AND PROBLEM SOLVING
Course Category: ES- Credits: 2:0:2
Course Objectives
1. Introduce students to the fundamentals of programming logic, flow control, and basic data
types in C and C++.
2. Familiarize students with functions, arrays, loops, and conditional statements in C and C++.
3. Teach students how to work with memory management, and basic file I/O operations in C
and C++.
4. Introduce the concept of object-oriented programming and classes in C++.
5. To introduce object-oriented programming concepts such as classes, objects, inheritance,
polymorphism, and encapsulation in C++.
6. Encourage students to apply programming concepts learned in class to real-world
engineering problems
Course Contents
Module 1: Basics of C (6 Hours)
Introduction of C Programming Languages, Basic Structure of C Keywords, Identifiers, Operators,
Constant, variable, Data Types, Control Statement and Expression, Decision Making using if
statement, Types of if …else block, Switch case Block, Arithmetic Expressions.
Module 2: Looping Statements, Arrays and Strings (6 Hours)
Concept of Loop- For loop, While loop, Do while loop Jumping in Loop, break and continue
statement, Arrays: Arrays (1D, 2D) Introduction to arrays, Declaration and initialization of One
dimensional arrays, Two-Dimensional arrays and Multi-Dimensional arrays. Example programs on
1D and 2D arrays.
Strings: Declaring and initializing string variables. Reading strings from terminal and writing
strings to screen, string concatenation, string comparison and string handling functions.
Module 3: Functions and file Handling (6 Hours)
Functions: Concept of Function, User defined Function, System Defined Function, Types of
parameter passing in function
File Handling using 'C': Opening and Closing File, Input / Output operations on File, Random
Access to Files, Command Line Arguments
32
CURRICULUM AND SYLLABUS FIRST YEAR ENGINEERING
Module 4: Introduction to C++ (6 Hours)
Functions: Concept of Function, User defined Function, System Defined Function, Types of
parameter passing in function
File Handling using 'C': Opening and Closing File, Input / Output operations on File, Random
Access to Files, Command Line Arguments
Module 5: Exception Handling and Functions (6 Hours)
Operator Overloading and Overriding.
Exception Handling: Various Exception Handling classes, Implementing try and catch block, Use
of throw keyword.
Functions: Call by reference, Return by reference, Function overloading and default arguments,
Inline function, Static class members, Friend functions, Virtual Functions.
Module 6: Recursion and structures (6 Hours)
Recurs Recursion: Introduction, Passing arrays to functions, passing strings to functions and the
scope visibility and lifetime of variables
Structures: Introduction, Defining and Declaring structure variables with example programs.
Accessing structure members, structure initialization, copying and comparing structure variables.
Operations on individual members, arrays of structures, arrays within structures. Structures within
structures, structures and functions. Difference between Structures and Union
Course Outcomes
1. Understand the fundamental concepts of programming in C and C++
2. Develop the ability to write efficient and structured code in C and C++.
3. Gain proficiency in using various kinds of looping concepts in C and C++ programming.
4. Apply object-oriented programming principles in C++ for software development.
5. Develop multi-threaded and concurrent applications using threading libraries in C and C++
6. Analyze and optimize code for performance and memory usage in C and C++.
Text Books
1. Greg Perry and Dean Miller, “C Programming Absolute Beginner's Guide”, Publication :
Pearson Education.
2. David Griffiths and Dawn Griffiths, "Head First C", Publication : O'Reilly Media
3. D.S. Malik, “C++ Programming: From Problem Analysis to Program Design”, 8 th Edition,
Publication- Cengage Learning.
33
CURRICULUM AND SYLLABUS FIRST YEAR ENGINEERING
Reference Books
6. Stephen Prata, “C++ Primer Plus”, Publication : Addison-Wesley Professional
7. Brian W. Kernighan and Dennis M. Ritchie, “The C Programming Language", Publication :
Prentice Hall
8. Peter Prinz and Tony Crawford , “C in a Nutshell", Publication : O'Reilly Media
9. Bjarne Stroustrup, “The C++ Programming Language", Publication : Addison-Wesley
Professional
10. Kernighan and Pike, “The Practice of Programming”
List of Laboratory Experiments (Any 8 experiments from the list)
GROUP A (Any 4) using C Programming Language
8. Generate and print first N Fibonacci numbers.
9. Write a program to calculate the factorial of a number.
10. Write a program to find Armstrong number or narcissistic number (1-500).
11. Write a program to show the concept of function with no argument and with return.
12. Find the number of vowels, consonants, digits and white spaces in a string.
13. Interchange the largest and smallest number in the array.
14. Write a program to sum N input numbers in an array.
GROUP B (Any 4) using C++ Programming Language
7. Write a program to find ASCII Value of Character.
8. To check whether a given string is palindrome or not without using library functions.
9. Write a program to reverse the content of a file.
10. Write a program to check whether a 2D array is a sparse matrix.
11. Write a program to reverse a string using string functions.
12. Create a structure called student with student name, roll-no, marks in three tests. Write a
C++ program to create N records and
(i)Search on roll-no and display all the records
(ii)Average marks in each test
(iii)Highest in each test
7. Write a program to find whether a number is prime or composite using recursion.
34