0% found this document useful (0 votes)
16 views6 pages

XI Computer Practical File Layout 2024 Annual

Uploaded by

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

XI Computer Practical File Layout 2024 Annual

Uploaded by

adityasaha146
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

MODERN ENGLISH ACADEMY

Computer Practical File

Name :

Class :

Stream :

Rollno :

Session :
INDEX
Serial Page
No. Program Topic No.
1. Print the Saddle point from a 2D array. 3
An element is known as Saddle point if it is lowest in the row
and highest in column.
Example 1: m=3, n=3
Input Array:
123
456
789
Output:
‘7’ is Saddle point found at 3 row and 1 column.
Example 2: m=3, n=3
Input Array:
111
111
111
Output:
No Saddle point found.
2. Check whether a square matrix is Magic square or not. 5
A square matrix is called as Magic Square, if the sum of each
row, each column and two diagonals are same.
Example 1: Size of the Array: 3
Input Array:
276
951
438
Sum of each row is: 15
Sum of each column is: 15
Sum of both diagonals is: 15
So, Matrix is Magic square.
3. Search an element in a single dimensional array using Binary
Search Technique (using recursion) by using a function
prototype int binSearch(in l, int u, int v). v is to be searched in
the array.
4. Print the boundary element from a 2D array with M x N as its
size. Also print the sum of four corners.
Example: M=3, N=4
Original Array:
1 2 3 4
5 6 7 8
9 10 11 12
Boundary Elements:
1 2 3 4
5 8
9 10 11 12
Sum of four corners: 26
5. Print the inner array from a M x N 2D array. Also print the sum
of the elements of the inner array.
Example: M=4, N=4
Original Array:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
Inner Elements:
6 7
10 11
Sum of the elements of the inner array: 34
6. Program to check whether a matrix with N x N as its size is
Symmetric Matrix or not.
(A square matrix is known to be Symmetric Matrix if the values
of the rows are equal to its corresponding column)
Input: N = 3
1 2 2
2 2 1
2 1 2
The above matric is Symmetric Matrix as values of each row is
equal to its corresponding column values.
7. Plus, and Cross pattern from a square matrix of size N x N where
N is must be ODD.
Input: N=5
1 2 3 4 5
6 7 8 9 1
2 3 4 5 6
7 8 9 1 2
3 4 5 6 7
Output: PLUS
3
8
23456
9
5
CROSS:
1 5
7 9
4
8 1
3 7
8. Program to check whether the single dimensional array
elements is Pseudo-arithmetic series or not.
You are given a sequence of N integers, which are called as
Pseudo Arithmetic sequences (sequences that are in arithmetic
progression).
Sequence of even (6) integers: 2, 5, 6, 8, 9, 12.
We observe that 2 + 12 = 5 + 9 = 6 + 8 = 14.
The sum of the above sequence can be calculated as 14 × 3 =42.
For sequence containing an odd (5) number of elements, the
rule is to double the middle element, for example 2, 5, 7, 9, 12.
2 + 12 = 5 + 9 = 7 + 7 = 14.
The sum of the above sequence can be calculated as 14 × 3 =42.
So, Array elements is Pseudo-arithmetic series.
9. Program to input a String and print it in the following manner:
Input : INDIA
Output : D
NDI
INDIA
Input : MODERN
Output : DE
ODER
MODERN
10. Generate and fill up a 2D array with first M x N Circular
Prime Numbers column wise and print them in matrix form.
Input: M = 2, N = 3
Generated Matrix:
11 17 37
13 31 71
Note : Every Program must have four parts like Half yearly Practical File.
1. Algorithm
2. Program Code
3. Variable Listing
4. Screen shots of the outputs.

Question 1.
Print the Saddle point from a 2D array.
An element is known as Saddle point if it is lowest in the row and highest in
column.
Example 1: m=3, n=3
Input Array:
123
456
789
Output:
‘7’ is Saddle point found at 3 row and 1 column.
Example 2: m=3, n=3
Input Array:
111
111
111
Output:
No Saddle point found.

Algorithm

Program Code

Variable Listing

Screen shots of the outputs.

You might also like