Pranveer Singh Institute of Technology, Kanpur
Odd Semester 2025-26
[Link]-First Year
Semester-I
Lab File
PROBLEM SOLVING APPROACH
(CS-151)
Submitted To: Submitted By:
Name of Subject Teacher: Name of Student:
Designation: Roll No/ID:
Department: Branch:
INDEX
Lab
No.
OBJECTIVES DATE MARKS SIGNATURE
1 Write an algorithm, pseudocode, and draw a flowchart
using Raptor
i) To swap two numbers using a third variable
and without a third variable.
ii) To take input marks of five subjects—physics,
chemistry, Biology, mathematics, and
computer—calculate percentage and grade
according to too given condition-
If percentage >= 90%: Grade A
If percentage >= 70%: Grade B
If percentage >= 70%: Grade B
If percentage >= 60%: Grade C
If percentage >= 40%: Grade D
If percentage <40%: Fail (consider a carry-
over (CP))
Print the result in the given format:
Input 60 76 88 34 61
Output: Pass, 63.80%, Grade C, CP-1
2 Write an algorithm, pseudocode, and draw a flowchart
using Raptor
i) To check whether the given number is a
prime number or not.
ii) To Check whether the given number is an
Armstrong number or not.
3 Write an algorithm, pseudocode, and draw a flowchart
using Raptor
i) To check whether the given number is a
perfect number or not.
ii) To check for a palindrome.
Write an algorithm, pseudocode, and draw a flowchart
using Raptor
i) Implement in raptor to Convert decimal
4
into Binary and visa-versa.
ii) Implement in raptor to Convert decimal
into Octal
Write an algorithm, pseudocode, and draw a flowchart
using Raptor
i) Use function which checks an integer as a sum
of two prime numbers and prints all
possibilities.
E.g: Input number: 34
5 Output:
34 = 3 + 31
34 = 5 + 29
34 = 11 + 23
34 = 17 + 17
ii) Find all Armstrong numbers between a range.
Write an algorithm, pseudocode, and recursive C
program:
6 i) X^n (power of X)
ii) Use recursion to find GCD of two
numbers
Write an algorithm, pseudocode, and C program for
7 implementing the following on 1D Array
i) Insert
ii) Delete
Write an algorithm, pseudocode, and C program for
implementing the following searching techniques in
8 1D-Array
i) Linear search
ii) Binary search
Write an algorithm, pseudocode, and C program for
implementing the following to sort a 1D-Array:
9
i) Bubble
ii) Insertion
Write an algorithm, pseudocode, and C program to
10
perform matrix multiplication in a 2D-Array: