2.2.4 Geometrical Shapes [35]
Problem Set 2.2.4: Geometrical Shapes [35]
Point Distance
Calculate the distance of a point from the origin in a 2-dimensional space.
Calculate the distance of a point from the origin in a 3-dimensional space.
Calculate the Distance between two points in a 2-dimensional space.
Calculate the Distance between two points in a 3-dimensional space.
Circle Diameter and Radius Calculation
Calculate the Diameter of a Circle (Input: Radius) [Diameter=2×Radius]
Calculate the Radius of a Circle (Input: Diameter) [Radius=1/2×Diameter]
Calculate the Area of the following Geometrical Shapes
Triangle
Calculate the Area of a Triangle (Input: Base and Height) [Area=(1/2)×Base×Height]
Calculate the Area of a Triangle (Input: Length of Three Sides (a, b, c)) [Area = sqrt(s*(s-a)(s-b)(s-c)), where, s=(a+b+c)/2]
Circle
Calculate the Area of a Circle (Input: Radius) [Area=π×(Radius^2)]
Ellipse (Input: Length of Axis Two) [Area=π×a×b]
Parallelogram (Input: Length of Base and Height) [Area=Base×Height]
Rectangle (Input: Length of Two Sides) [Area=Width×Length]
Square (Input: Length of One Side) [Area=Length^2]
Trapezoid (Input: Length of Two Parallel Sides (a, b), and Height) [Area=(a+b)/2×Height]
Rhombus (Input: Length of Two Diagonal (d1, d2)) [Area=(1/2)×d1×d2]
Polygon
Pentagon
Hexagon
Calculate the Volume of the following 3D Geometrical Shapes
Sphere
Cylinder
Pyramid
Cube
Cuboid
Cone
Calculate the Surface Area of the following 3D Geometrical Shapes
Sphere
Cylinder
Pyramid
Cube
Cuboid
Cone
Calculate the circumference of the following Geometrical Shapes
Triangle (Input: Length of Three Sides)
Calculate the Circumference of a Circle (Input: Radius) [Circumference=2×π×Radius]
Square (Input: Length of One Side)
Calculate the Diagonal of the following Geometrical Shapes
Square (Input: Length of One Side)
Rectangle (Input: Length of Two Sides)
Total Number of Diagonal of a Polygon (Input: Number of Sides)
Last updated