0% found this document useful (0 votes)
4 views4 pages

PSA Lab File Format

The document outlines the lab file for the Problem Solving Approach course at Pranveer Singh Institute of Technology for B.Tech First Year, Semester-I. It includes various lab exercises that require writing algorithms, pseudocode, and flowcharts using Raptor, covering topics such as number manipulation, prime checking, and array operations. Each lab exercise is structured with objectives, dates, marks, and signatures for submission.

Uploaded by

Navneet Shukla
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

PSA Lab File Format

The document outlines the lab file for the Problem Solving Approach course at Pranveer Singh Institute of Technology for B.Tech First Year, Semester-I. It includes various lab exercises that require writing algorithms, pseudocode, and flowcharts using Raptor, covering topics such as number manipulation, prime checking, and array operations. Each lab exercise is structured with objectives, dates, marks, and signatures for submission.

Uploaded by

Navneet Shukla
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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:

You might also like