# Category Archives: School Programming

## Program to find the Area and Perimeter of a Semicircle

Given the radius of the semicircle as r, the task is to find out the Area and Perimeter of that semicircle. Examples: Input: r =… Read More »

## Check if the frequency of all the digits in a number is same

Given a positive number ‘N’, the task is to find whether ‘N’ is balanced or not. Output ‘YES’ if ‘N’ is a balanced number else… Read More »

## ISC- Class 12 Computer Science 2017

COMPUTER SCIENCE (PAPER 1: THEORY) (Maximum Marks: 70) (Time allowed: Three hours) (Candidates are allowed additional 15 mins for only reading the paper. They must… Read More »

## Program to find the Sum of each Row and each Column of a Matrix

Given a matrix of order m*n, the task is to find out the sum of each row and each column of a matrix. Examples: Input:… Read More »

## Minimum number of Parentheses to be added to make it valid

Given a string S of parentheses ‘(‘ or ‘)’ where, . The task is to find minimum number of parentheses ‘(‘ or ‘)’ (at any… Read More »

## Find Sum of Series 1^2 – 2^2 + 3^2 – 4^2 ….. upto n terms

Given a number n, the task is to find the sum of the below series upto n terms: 12 – 22 + 32 – 42… Read More »

## Length of the Diagonal of the Octagon

Given here is a regular octagon of side length a, the task is to find the length of it’s diagonal. Examples: Input: a = 4… Read More »

## Program to Calculate the Perimeter of a Decagon

Given side of a Decagon, the task is to find out the Perimeter of the Decagon. Explanation : In geometry, a decagon is a ten-sided… Read More »

## Program to replace every space in a string with hyphen

Given a string, the task is to replace all the spaces between the words with a hyphen character ‘-‘. Examples: Input: str = “Geeks for… Read More »

## Product of all pairwise consecutive elements in an Array

Given an array of integers of N elements. The task is to print the product of all of the pairwise consecutive elements. Pairwise consecutive pairs… Read More »

## Program to find the Area of a Parallelogram

Given the sides of a Parallelogram, task is calculate the area of a Parallelogram. Examples: Input: base = 30, height = 40 Output: 1200.000000 As… Read More »

## Program to print product of even and odd indexed elements in an Array

Given an array of integers. The task is to write a program to find the product of elements at even and odd index positions separately.… Read More »

## Program to print the pattern with two hollow Triangles

Given a number n, the task is to write a program to draw the following pattern using ‘\$’. \$ \$ \$ \$ \$ \$ \$… Read More »

## Program to find the maximum element in a Matrix

Given a NxM matrix. The task is to find the maximum element in this matrix. Examples: Input: mat = {{1, 2, 3, 4}, {25, 6,… Read More »

## Different types of Coding Schemes to represent data

Any text-based data is stored by the computer in the form of bits(a series of 1s and 0s), and follows the specified Coding Scheme. The… Read More »