Ok ,this is what I have now. We also had to convert it to acre. That's why I divided it.
Code:
// Headers and Other Technical Items
#include <iostream>
using namespace std;
// Function Prototypes
void get_data(void);
void process_data(void);
void show_results(void);
void pause(void);
// Variables
double length;
double width;
double total_rectangular;
float pi;
float farmable_area;
float nonfarmable;
//******************************************************
// main
//******************************************************
int main(void)
{
get_data();
process_data();
show_results();
return 0;
}
// Input
void get_data(void)
{
cout << "\nEnter the length of the property in feet --->: ";
cin >> length;
cout << "\nEnter the width of the property in feet ---->: ";
cin >> width;
return;
}
// Process
void process_data(void)
{
pi = 3.14159265;
total_rectangular = (length * width)/ 43560;
farmable_area=pi*(width/2)*(width/2)/43560;
nonfarmable = total_rectangular - farmable_area/43560;
return;
}
// Output -
void show_results(void)
{
cout << "\n";
cout << "\nThe total area of the property is ---->: ";
cout << total_rectangular;
cout << "\nThe total area that is farmable is ---->: ";
cout << farmable_area;
pause();
return;
}
//******************************************************
// pause
//******************************************************
void pause(void)
{
cout << "\n\n";
system("PAUSE");
cout << "\n\n";
return;
}