এই সমস্যায়, আমাদের একটি মান দেওয়া আছে যা একটি আইকোসাহেড্রনের বাহু নির্দেশ করে। আমাদের কাজ হলো সি++-এ আইকোসাহেড্রনের ক্ষেত্রফল ও আয়তন বের করার একটি প্রোগ্রাম তৈরি করা।
আইকোসাহেড্রন (Icosahedron) হলো একটি নিয়মিত ৩০ বাহুযুক্ত বহুতলক। এর ২০টি সমবাহু ত্রিভুজ রয়েছে একই বাহু দিয়ে। এই বহুতলকের মাত্র ১২টি শীর্ষবিন্দু রয়েছে।

চিহ্নিত রেখাগুলো দৃশ্যমান পৃষ্ঠের পেছনের কান্টান।
উদাহরণ দিয়ে বুঝি
ইনপুট
a = 4
সমাধানের পদ্ধতি
সমস্যা সমাধানের জন্য আমরা আইকোসাহেড্রনের ক্ষেত্রফল বের করার জ্যামিতিক সূত্র ব্যবহার করব।
পৃষ্ঠ ক্ষেত্রফল (Surface Area) = $5a^2\sqrt{3} = 8.660 * a^2$
আয়তন (Volume) = $\frac{5a^2}{12}(3+\sqrt{5}) = 2.1817 * a^3$
সমাধান প্রদর্শনের প্রোগ্রাম,
উদাহরণ
#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