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

PIC Semester II

The document summarizes a Programming in C course, including its code, category, title, credits, prerequisites, objectives, outcomes, contents, and laboratory exercises. The course aims to teach basic C programming concepts like arrays, strings, structures, functions, and pointers to help students develop programming logic and skills. The laboratory exercises focus on implementing various C programming concepts through practical programs and assignments.

Uploaded by

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

PIC Semester II

The document summarizes a Programming in C course, including its code, category, title, credits, prerequisites, objectives, outcomes, contents, and laboratory exercises. The course aims to teach basic C programming concepts like arrays, strings, structures, functions, and pointers to help students develop programming logic and skills. The laboratory exercises focus on implementing various C programming concepts through practical programs and assignments.

Uploaded by

Yagnam Joshi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

COURSE STRUCTURE

Course Code CET0003B


Course Category Program Core
Course Title Programming in C
Teaching Scheme and Credits L T Laboratory Credits
Weekly load hrs. 02 - 04 2+0+2=4
Pre-requisites: 10th passed

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.

1. Knowledge (i) Understand basic concept of C programming


(ii) Understand basic concept of modular programming

2. Skills (i) Create a base to develop foundation skills of programming language.


(ii) Logic building

3. Attitude (i) Solve broad-based engineering problems applying basic knowledge of C language.

Course Outcomes:

1. Implement ‘C’ programs using arrays


2. Implement ‘C’ programs using Strings.
3. Develop ‘C’ programs using structures and Union.
4. Construct and Use functions in C programs for modular programming approach.

Prof.Dr.R.S.Kale
Associate Dean
5. Develop ‘C’ programs using pointers.
Course Contents:

● Arrays

● Strings

● Structures

● Functions

● Pointers

Laboratory Exercises / Practical:

1 Write a program to implement basic concepts of C programming


a) Write a C program to find Ascii values of a character
b) Write a C program to check whether a given number is prime or not.
c) Write a C program to find LCM of two numbers.

2 Write a program to implement one dimensional arrays:


a) Program to take 5 values from the user and store them in an array
b) Wrote a Program to find the average of n numbers using an array.
c) Write a C Program to display the following pattern.
a. *
b. ##
c. $$$

Prof.Dr.R.S.Kale
Associate Dean
d. @@@@
d) Write a C program to sort the element of array in ascending order

3 Write a program to implement one dimensional arrays:


a) Write C program to Finding the greatest and the smallest element in the array
b) Write a C program squaring the even positioned and cubing the odd positioned
elements.
c) Move all the negative elements to one side of the array
4 Write a program to implement multi-dimensional arrays:
a) Write a C Program for matrix multiplication for 3*3 matrix.
b) Write a C Program to Counting positive, negative, even, odd and zeros in an
array.
c) Write a C Program to Generating the transpose of the matrix.
d) C program to store temperature of two cities of a week and display it
e) Write a C Program to store and Print 12 values entered by the user using a
three-dimensional array.

5 Develop a Program using String:


a) Write a program in C to input a string and print reverse string.
b) Write a program in C to copy one string to another string.
c) Write a C program to count digit, spaces, special character, alphabets in string.
d) Write a C program to sort 5 strings entered by the user in the lexicographical
order (dictionary order).
e) Write a program to asks the user to enter a username, If the username entered is
one of the names in the master list then the user is allowed to calculate the
factorial of a number. Otherwise, display error message.(Initialize master list of
username using array).
6 Develop a Program using Structure:
a) Write a C Program to declare the structure of the student with data member

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

9 To understand programming with user defined functions:


a) Find Factorial of given number using recursion.
b) Write a program to calculate sum of first 50 natural numbers using recursive
function.
c) Program to calculate the sum of array elements by passing to a function
d) Write a program in C to check whether a number is a prime number or not using

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.

11 Develop a Program: array using pointers, Pointers to Structure, Pointers to Function.


a) Write a program in C to compute the sum of all elements in an array using
pointers.
b) Write a program in C to print all permutations of a given string using pointers. 
c) Write a program in C to sort an array using Pointer.
d) Write a C program to access structure element using pointer.
e) Write a program in C to find the factorial of a given number using pointers.

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:

Weblinks: State of the art in the course

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/

MOOCs: Online courses for self-learning

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

● Active Learning methods

● Power Point Presentation, Videos

● Group activity

● Self-study material

Assessment Scheme:

Class Continuous Assessment (CCA): 30 Marks

Assignments Midterm Exam Total


10 20 30

Laboratory Continuous Assessment (LCA): 30 Marks

Term Work/Practical End Term PR exam Total


Assessment
15 15 30

Term End Examination: 40

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

Structures and Union


Introduction and Features of Structures, Declaration and
Initialization of Structures, Accessing Structure Members, Using
Typedef keyword, Nested structures, Arrays of structures,
3 6 10 4
Structures containing arrays, Enumerated Data Type, Pointers
and structures.
Concept of Union, declaration, definition, accessing union
members, Difference between structures and union.

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

You might also like