//Zachary Abdollahi CS1A Chapter 2, P. 83, #12
//
/*******************************************************************************
*
* COMPUTE LAND ACREAGE
*______________________________________________________________________________
* This program calculates the number of acres in a tract of land
* given its size in square feet.
*
* Computation is based on the formula:
* Acres = Total Square Feet / Square Feet per Acre
*______________________________________________________________________________
* INPUT
* sqFeetPerAcre : Number of square feet in one acre (43,560)
* tractSqFeet : Total square feet of the land tract (389,767)
*
* OUTPUT
* acres : Calculated number of acres
*
******************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float sqFeetPerAcre; //INPUT - Square feet per acre
float tractSqFeet; //INPUT - Total square feet of tract
float acres; //OUTPUT - Calculated number of acres
// Initialize Program Variables
sqFeetPerAcre = 43560.0;
tractSqFeet = 389767.0;
// Compute Acres
acres = tractSqFeet / sqFeetPerAcre;
// Output Result
cout << fixed << setprecision(2);
cout << "A tract of " << tractSqFeet << " sq ft is equal to ";
cout << acres << " acres." << endl;
return 0;
}