PIC Semester II
PIC Semester II
Course Objectives:
Computer Engineering students have to develop real life applications for various IT industries. For
developing such type of applications they must know the concepts of algorithm, flowchart and logic
building techniques. The contents of this course are designed for developing the skills. This course deals
with basic concepts of ‘C’ that will help the students to apply the concepts to build programming logic.
The course is basically designed to create a base to develop foundation skills of programming language.
3. Attitude (i) Solve broad-based engineering problems applying basic knowledge of C language.
Course Outcomes:
Prof.Dr.R.S.Kale
Associate Dean
5. Develop ‘C’ programs using pointers.
Course Contents:
● Arrays
● Strings
● Structures
● Functions
● Pointers
Prof.Dr.R.S.Kale
Associate Dean
d. @@@@
d) Write a C program to sort the element of array in ascending order
Prof.Dr.R.S.Kale
Associate Dean
book, price and pages.
b) Write a C Program to Calculate Difference between Two Time Periods using
structure
c) Write a program that compares two given dates. To store date use a structure
say date that contains three members namely date, month and year. If the dates
are equal, then display the message as "Equal" otherwise "Unequal".
d) Initialize and print the following union variables: 7, and 7.0 using the following
program that has a union and a member to track what's in the union inside a
structure.
7 Develop a Program using array of Structure:
a) Create a structure named company which has name, address, phone and
noOfEmployee as member variables. Read name of 10 companies, its address,
phone and noOfEmployee. Finally display these members’ value.
b) Enter the marks of 5 students in Chemistry, Mathematics and Physics (each out
of 100) using a structure named Marks having elements roll no., name,
chem_marks, maths_marks and phy_marks and then display the percentage of
each student.
c) Write a program to add two distances in inch-feet using structure. The values of
the distances is to be taken from the user
8 To understand programming with Library Functions:
a) Write a program in C to check whether two given strings are an anagram.
b) Write a program in C to check Armstrong number between 1 to 500.
c) Write a program in C to check perfect numbers using the function.
d) Write a program to use of few miscellaneous functions
Prof.Dr.R.S.Kale
Associate Dean
the function.
e) Write a C program to swap the values of two variable using call by reference.
f) C Program to swap a number in Cyclic order using cal by reference
10 Develop a Program using Pointers
a) Write a program in C to demonstrate the use of &(address of) and *(value at
address) operator.
b) Write a program in C to demonstrate how to handle the pointers in the program.
c) Write a program in C to add two numbers using pointers.
d) Write a program in C to find the maximum number between two numbers using
a pointer.
e) Write a program in C to store n elements in an array and print the elements using
pointer.
12 Develop any one Application (Program) of the following in group of 2-3 students. (Use
Structures and other features of ‘C’ to develop applications)
a) Prepare simple mark sheet for 10 students.
b) Generate Salary slips of employees in an Organization.
c) Develop Book issue System of Library.
d) Develop Calendar using C.
e) Implement Snake Game.
Prof.Dr.R.S.Kale
Associate Dean
f) Any other Program Suggested by Subject Teacher on similar line.
Learning Resources:
Text Books:
1. Balgurusamy, E., Programming in ANSI C, McGraw Hill Education, New Delhi 2012, ISBN:
978-1259004612
Reference Books:
1. ByronGottfried, JitenderChhabra ,Programming with C,Schaum's Outlines Series Paperback –
Import, 1 Sep 1996
2. Brian, W. Kernighan, Ritchie Dennis, The C Programming Language, PHI Learning Private
Limited, New Delhi 1990, ISBN: 978-8120305960
3. Jery R. Hanly, Elliot B. Koffman, Problem Solving and Program Design in C 5 th Edition,
Pearson Addison Wesley, ISBN 0-321-46464-8
4. Schildt Herbert, C: the Complete Reference , McGraw Hill Education India, ISBN:
9780070411838, 9780070411838
Web Resources:
1. https://www.tutorialspoint.com/software_engineering/
2. https://www.javatpoint.com/software-engineering-tutorial
3. https://www.w3schools.in/category/software-testing/
4. http://www.rspa.com/spi/
Prof.Dr.R.S.Kale
Associate Dean
1. https://www.coursera.org/courses?query=software%20engineering
2. https://nptel.ac.in/courses/106101061/
Pedagogy:
● Smart Board
● Group activity
● Self-study material
Assessment Scheme:
Workload in Hrs
Prof.Dr.R.S.Kale
Associate Dean
Module
Contents Theory Lab Assess
No.
Arrays
Array: Characteristics of an array, Advantage of C Array. Types
of Array: One dimensional, two dimensional and
Multidimensional array. Array declaration and Initialization,
1 Accessing Array Elements, Operations on array- insertion, 6 6 2
deletion, searching, Sorting.
Array applications - Finding maximum and minimum, Counting
occurrences of particular element in an array ,Matrix operations.
Strings
Declaration, initialization, string verses character array,Reading
String, Displaying string ,%s format specifier, gets(), puts()
2 functions 4 6 4
Strings and array- string handling operations using arrays.
String functions: strlen, strlwr, strupr, strcat, strncar, strcpy,
strcmp, strncpy, strncmp, strcmpi, strchr, strrev
Functions
Concept and need of functions., Library functions: Math
functions, String handling functions, other miscellaneous
4 functions like getenv(), setenv(), putenv(), perror(), rand(), 6 10 4
delay()., Writing User defined functions, Function prototypes,
scope of variables., Parameter passing: call by value, call by
reference., Recursion.
Prof.Dr.R.S.Kale
Associate Dean
Pointers
Concepts of pointers: declaring, initializing, accessing. Pointer
arithmetic and pointer expressions, Handling arrays using
pointers. Handling Function using pointers. Handling Structure
5 using pointers. 10 4
8
Relationship between Arrays & Pointers- Pointer to array, Array
of pointers. Multiple indirection (pointer to pointer) Functions
and pointers- Passing pointer to function, Returning pointer from
function, Function pointer..
Prof.Dr.R.S.Kale
Associate Dean