Category Archives: School Programming

Section formula for 3 D

Given two coordinates (x1, y1, z1) and (x2, y2, z2) in 3D, and m and n, find the co-ordinates that divides the line joining (x1,… Read More »

Program to print Hut

Given a number N, the task is to print Hut of width n. Output Below is the code to implement the above problem: Program: C++… Read More »

Domain Specific Tools

Depending upon of its usages, the software may be classified as generic or specific. Generic software is a software that can perform multiple tasks in… Read More »

Sum of first N terms of Quadratic Sequence 3 + 7 + 13 + …

Given a quadratic series as given below, the task is to find sum of first n terms of this series. Sn = 3 + 7… Read More »

Program to find the Perimeter of a Regular Polygon

Given the number of sides ‘n’ and the length of side ‘s’ of a regular polygon, the task is to find out the Perimeter of… Read More »

Program to Convert Hexadecimal Number to Binary

Given a Hexadecimal number as an input, the task is to convert that number to Binary number. Examples: Input: Hexadecimal = 1AC5 Output: Binary =… Read More »

Program to find sum of 1 + x/2! + x^2/3! +…+x^n/(n+1)!

Given a number x and n, the task is to find the sum of the below series of x till n terms: Examples: Input: x… Read More »

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 »