2.2.4 Geometrical Shapes [35]

Problem Set 2.2.4: Geometrical Shapes [35]

  1. Point Distance

    1. Calculate the distance of a point from the origin in a 2-dimensional space.

    2. Calculate the distance of a point from the origin in a 3-dimensional space.

    3. Calculate the Distance between two points in a 2-dimensional space.

    4. Calculate the Distance between two points in a 3-dimensional space.

  2. Circle Diameter and Radius Calculation

    1. Calculate the Diameter of a Circle (Input: Radius) [Diameter=2×Radius]

    2. Calculate the Radius of a Circle (Input: Diameter) [Radius=1/2×Diameter]

  3. Calculate the Area of the following Geometrical Shapes

    1. Triangle

      1. Calculate the Area of a Triangle (Input: Base and Height) [Area=(1/2)×Base×Height]

      2. 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]

    2. Circle

      1. Calculate the Area of a Circle (Input: Radius) [Area=π×(Radius^2)]

    3. Ellipse (Input: Length of Axis Two) [Area=π×a×b]

    4. Parallelogram (Input: Length of Base and Height) [Area=Base×Height]

    5. Rectangle (Input: Length of Two Sides) [Area=Width×Length]

    6. Square (Input: Length of One Side) [Area=Length^2]

    7. Trapezoid (Input: Length of Two Parallel Sides (a, b), and Height) [Area=(a+b)/2×Height]

    8. Rhombus (Input: Length of Two Diagonal (d1, d2)) [Area=(1/2)×d1×d2]

    9. Polygon

      1. Pentagon

      2. Hexagon

  4. Calculate the Volume of the following 3D Geometrical Shapes

    1. Sphere

    2. Cylinder

    3. Pyramid

    4. Cube

    5. Cuboid

    6. Cone

  5. Calculate the Surface Area of the following 3D Geometrical Shapes

    1. Sphere

    2. Cylinder

    3. Pyramid

    4. Cube

    5. Cuboid

    6. Cone

  6. Calculate the circumference of the following Geometrical Shapes

    1. Triangle (Input: Length of Three Sides)

    2. Calculate the Circumference of a Circle (Input: Radius) [Circumference=2×π×Radius]

    3. Square (Input: Length of One Side)

  7. Calculate the Diagonal of the following Geometrical Shapes

    1. Square (Input: Length of One Side)

    2. Rectangle (Input: Length of Two Sides)

    3. Total Number of Diagonal of a Polygon (Input: Number of Sides)

Last updated