//Charlotte Davies-Kiernan CS1A Chapter 2, P. 83, #12
//
/*****************************************************************************
*
* Compute Land Calculation
* ___________________________________________________________________________
* This program computes the number of acres in a tract of land.
*
* Computation is based on the formula:
* Number of Acres = Total Square Feet / Square Feet per Acre
* ___________________________________________________________________________
* INPUT
* square_feet_per_acre : Constant for square in one acre
* totalSquareFeet : Total square feet in a tract of land
*
* OUTPUT
* acres : Number of acres in a tract of land
*
****************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float square_feet_per_acre; //INPUT - Constant for square in one acre
float totalSquareFeet; //INPUT - Total square feet in a tract of land
float acres; //OUTPUT - Number of acres in a tract of land
//
// Initialize Program Variables
square_feet_per_acre = 43560.0;
totalSquareFeet = 389767.0;
//
// Compute the number of acres
acres = totalSquareFeet / square_feet_per_acre;
//
// Output Result
cout << "The land with " << totalSquareFeet << " square feet is ";
cout << "approximately " << acres << " acres." << endl;
return 0;
}