//Cenyao Huang CS1A Homework 2, P. 83, #12
/****************************************************************************
* COMPUTE NUMBER OF ACRES
* This program computes the number of acres in a tract of land.
*
* This program uses the formula:
* land_sqFt/oneAcre_sqFt
*
* Input
* oneAcre_sqFt : the number of square feet in one acre
* land_sqFt : the number of square feet in a tract of land
*
* Output
* land_acres : the number of acres in a tract of land
*
*****************************************************************************/
#include <iostream>
using namespace std;
int main() {
int oneAcre_sqFt = 43560, land_sqFt = 389767; // define variables
int land_acres = land_sqFt/oneAcre_sqFt;
cout << land_acres;
return 0;
}
Ly9DZW55YW8gSHVhbmcgICAgICAgICAgICAgICAgIENTMUEgICAgICAgICAgICAgICAgICAgIEhvbWV3b3JrIDIsIFAuIDgzLCAjMTIKCi8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiogQ09NUFVURSBOVU1CRVIgT0YgQUNSRVMKKiBUaGlzIHByb2dyYW0gY29tcHV0ZXMgdGhlIG51bWJlciBvZiBhY3JlcyBpbiBhIHRyYWN0IG9mIGxhbmQuCioKKiBUaGlzIHByb2dyYW0gdXNlcyB0aGUgZm9ybXVsYToKKiBsYW5kX3NxRnQvb25lQWNyZV9zcUZ0CiogCiogSW5wdXQKKiBvbmVBY3JlX3NxRnQgOiB0aGUgbnVtYmVyIG9mIHNxdWFyZSBmZWV0IGluIG9uZSBhY3JlCiogbGFuZF9zcUZ0IDogdGhlIG51bWJlciBvZiBzcXVhcmUgZmVldCBpbiBhIHRyYWN0IG9mIGxhbmQKKgoqIE91dHB1dAoqIGxhbmRfYWNyZXMgOiB0aGUgbnVtYmVyIG9mIGFjcmVzIGluIGEgdHJhY3Qgb2YgbGFuZAoqCioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwoKI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgb25lQWNyZV9zcUZ0ID0gNDM1NjAsIGxhbmRfc3FGdCA9IDM4OTc2NzsgLy8gZGVmaW5lIHZhcmlhYmxlcwogICAgaW50IGxhbmRfYWNyZXMgPSBsYW5kX3NxRnQvb25lQWNyZV9zcUZ0OwogCgogICAgY291dCA8PCBsYW5kX2FjcmVzOwoKCXJldHVybiAwOwp9