Computer Programming lab cousr plan (sem 2)
Computer Programming lab cousr plan (sem 2)
3. L-T-P: (0-0-2)
4. Credits: 1
● Develop programming skills, logical thinking and reasoning for problem solutions.
M-7 Pointers 2
Page 1 of 8
11. Course Contents
2. To read the radius of a circle and find its Area and Perimeter.
4. Program to accept student roll no, marks in 3 subjects and calculate total, average of
5. An Employee's Basic Pay (BP) is to be read through a keyboard. DA is 40% of BP, HRA
6. Program to find the distance between two points (x1, y1) and (x2, y2) in a Cartesian
plane.
7. Program to swap two numbers using a temporary variable. Also print the original
1. The distance between two cities (in km.) is input through the keyboard. Write a
program to convert and print this distance in meters, feet, inches and centimeters.
2. The length & breadth of a rectangle and radius of a circle are input through the
keyboard. Write a program to calculate the area & perimeter of the rectangle, and the
3. If a five-digit number is input through the keyboard, write a program to calculate the
4. If a five-digit number is input through the keyboard, write a program to reverse the
number.
5. If the total selling price of 15 items and the total profit earned on them is input
through the keyboard, write a program to find the cost price of one item.
6. Write a program to compute the values of square-roots and squares of the numbers 0
special character.
3. Given 3 sides, write a program to check whether the triangle can be formed for the
following conditions.
5. Program to display the grade obtained by a student based on the marks. The relation
Marks Grades
Below 40 Fail
40-59 E
50-59 D
60-69 C
70-79 B
80-89 A
90-100 A+
1. Program to reverse the digits of a number and to find the sum of the digits.
3. Program to find the prime and non prime numbers between a given range.
M-4. Arrays
6. To sort array elements in ascending order using i) Bubble sort ii) Selection sort.
M-4. Strings
1. To read a string and find its length without using a library function.
M-5. Functions
2. Program to implement the following string functions (use switch-case to make the
M-5. Recursion
Page 4 of 8
6. Program to find the biggest number in an array.
1. Program to input and display book information ( Title of the book, Author , ISBN,
Price)
2. Program to accept 5 people’s name, address and telephone number and to search
i. Based on name
3. Accept a name, register number, marks in 6 subjects of N students. Find the total
i. Based on name.
iii. Accept a register number and search for this student using binary search
iv. Find the average marks for each student and sort them in ascending order
of average marks.
4. Store the item number, item name, unit price and quantity in stock of N items in a
iii. Calculate the difference between two time periods using structures.
M-7. Pointers
Page 5 of 8
a) Concatenation. b) Comparison. c) Length d) Copy e) Reverse.
allocation.
1. Program to read data from the keyboard; write it in a file called DATA.txt. Again read
the same data from the file and display it on the screen.
2. A file named DATA.txt contains a series of integer numbers. Write a program to read
these numbers and then write all odd numbers to a file to be called ODD and all even
4. Program to append the content of a file at the end of another without using append
mode.
Note:
● A common end-sem, mid-sem and class test-1 & -2 will be conducted through IRIS
Page 6 of 8
Sl. No. Items Date Time Syllabus
04.06.2021
1 Class Test-1 05:00 pm - 05:30 pm M-2 and M-3
(Friday)
25.06.2021
2 Mid-Sem 05:00 pm - 06:00 pm M-2, M-3, and M-4
(Friday)
16.07.2021
3 Class Test-2 05:00 pm - 05:30 pm M-5 and M-6
(Friday)
● Missing labs due to holidays should be compensated by conducting extra labs during
the same week and should be announced well in advance to all students.
1. Every lab module (M-1 to M-8) starts with the explanation and demonstration of
sample programs by the lab instructor along with doubt clearing during the online
2. The second subsequent online lab will be used to evaluate the exercises completed by
a student of that particular module. At least 4 teams for every section consisting of 3
members (AL, RS, M. Tech(R), M. Tech) can be formed to evaluate the students’ work.
Example:
Module M-1 (no report submission) explanation with the demo will be done by the
respective lab section instructor during 3rd May - 7th May 2021 (online lab of the
respective sections).
For module M-2 onwards, one lab will be used for explanation and demo by the
respective section lab instructor, followed by the subsequent lab for the evaluation.
(Example: Section-1, module M-2 explanation and demo will be on 10th May 2021 and
evaluation will be on 17th May 2021. Further, on or before 16th May 2021 section-1
3. Regular evaluation lab’s MS Teams link should be updated here by the RS which will
4. Regular lab evaluations (marks) should be updated regularly here by the lab
Page 7 of 8
instructor. The guidelines for regular lab evaluations can be found here.
5. Every student will be given a week's time to complete at least 6 exercises: 3 from each
submodule (extra can be used for practice) listed in a particular module (refer to sl.
no. 11) and upload a pdf file consisting of source code and snapshot of the results with
Page 8 of 8