Saturday, 4 Dec 2021
Category: area-volume-programs

Given area of square inscribed in a circle as N, the task is to calculate the area of circle in which the square is inscribed.Examples: Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.  To complete your […]

Given the length of the three semi-axes as A, B, and C, the task is to find the surface area of the given Ellipsoid.Ellipsoid is a closed surface of which all plane cross-sections are either ellipses or circles. An ellipsoid is symmetrical about the three mutually perpendicular axes that intersect at the center. It is […]

Given two positive integers h and w representing the height h and width w which forms a rectangle. Also, there are two arrays of integers horizontalCuts and verticalCuts where horizontalCuts[i] is the distance from the top of the rectangle to the ith horizontal cut and similarly, verticalCuts[j] is the distance from the left of the […]

Area of a triangle with two vertices at midpoints of opposite sides of a square and the other vertex lying on vertex of a squareGiven a positive integer N representing the side of a square, the task is to find the area of a triangle formed by connecting the midpoints of two adjacent sides and […]

Given four positive integers A, B, C, and D representing the length of sides of a Cyclic Quadrilateral, the task is to find the area of the Cyclic Quadrilateral.Examples:Input: A = 10, B = 15, C = 20, D = 25Output: 273.861Input: A = 10, B = 30, C = 50, D = 20Output: 443.706Approach: […]

Program to find the shortest distance between diagonal and edge skew of a Cube Given an integer A, denoting the length of a cube, the task is to find the shortest distance between the diagonal of a cube and an edge skew to it i.e. KL in the below figure. Examples : Input: A = […]

Calculate area and height of an isosceles triangle whose sides are radii of a circle Given integers R and representing the radius of a circle and the angle formed at the center O by the sector AB (as shown in the figure below), the task is to find the height and area of the triangle […]