Here it goes... that's what I got.
Code:
#include <iostream>
#include <cmath>
using namespace std;
// Function Prototypes
void get_data(void);
void process_data(void);
void show_results(void);
void pause(void);
// Variables
double side_1;
double answer;
//******************************************************
// main
//******************************************************
int main(void)
{
get_data();
process_data();
show_results();
return 0;
}
// Input
void get_data(void)
{
cout << "\nEnter the total side_1 in the hexagon --->: ";
cin >> side_1;
return;
}
// Process
void process_data(void)
{
answer = side_1 * 3 * sqrt(0.75);
return;
}
//Output
void show_results(void)
{
cout << "\n";
cout << "\nThe area of the hexagon is---->: ";
cout << answer;
pause();
return;
}
//******************************************************
// pause
//******************************************************
void pause(void)
{
cout << "\n\n";
system("PAUSE");
cout << "\n\n";
return;
}
//******************************************************
// End of Program
//******************************************************
But that can't be it. It's supposed to be a short answer.