- Related Questions & Answers
- Program for Volume and Surface Area of Cube in C++
- Program for Volume and Surface Area of Cuboid in C++
- Program to calculate area and volume of a Tetrahedron
- How to find Volume and Surface Area of a Sphere using C#?
- Program for Volume and Surface area of Frustum of Cone in C++
- Find maximum volume of a cuboid from the given perimeter and area in C++
- Surface Area and Volume of Hexagonal Prism in C programming
- Program to find the Area and Perimeter of a Semicircle in C++
- C program to find the area of circle and cylinder using structures.
- Program to find the Area of an Ellipse in C++
- Program to find the Area of a Parallelogram in C++
- Program to find the Area of a Pentagon in C++
- C Program for Program to find the area of a circle?
- Program to find the Area of an Ellipse using C++
- Program to calculate volume of Ellipsoid in C++

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

In this problem, we are given a value that denotes the side of an icosahedron. Our task is to create a program to find the Area and Volume of Icosahedron in C++.

**Icosahedron** is a regular 30 sided polyhedron. It has 20 equilateral triangles of the same side. There are only 12 vertices of this polyhedron.

Dashed lines are for the edges that are behind the visible surface.

**Let’s take an example to understand the problem,**

a = 4

To solve the problem, we will use the geometrical formula to find the area of the icosahedron.

Surface Area (area) =$5\square^2\sqrt{3}=8.660 * a^2$

Volume =$Volume =\frac{5\square^2}{12}(3+\sqrt{5})=2.1817 * a^3$

**Program to illustrate the working of our solution,**

#include <iostream> using namespace std; float calcIcoSArea(float a) { return (8.660 * a * a); } float calcIcoVolume(float a) { return (2.1817 * a * a * a); } int main(){ float a = 7; cout<<"The length of side of icosahedron is "<<a<<endl; cout<<"The surface area of icosahedron is "<<calcIcoSArea(a)<<endl; cout<<"The volume of icosahedron is "<<calcIcoVolume(a)<<endl; return 0; }

The length of side of icosahedron is 7 The surface area of icosahedron is 424.34 The volume of icosahedron is 748.323

Advertisements