# Computer science C++

A problem in timber management is to determine how much of an area to leave uncut so that the harvested area is reforested in a certain period. It is assumed the reforestation takes place at a known rate per year, depending on climate and soil conditions.
A reforestation equation expresses this growth as a function of the amount of timber standing and the reforestation rate. For example, if 100 acres are left standing after harvesting and the reforestation rate is 0.05, then 100+0.05 *100 or 105 acres can be reforested at the end of the first year. If nothing is harvested, then at the end of the second year, the number of acres is 105+0.05*105 or 110.25 acres.

1. Prompt the user for the following inputs:
a. Total Acres
b. Acres Uncut
c. Reforestation Rate
d. Regrowth Period (in years)
2. Prompt the user to select one of the following calculation types:
a. Determine acres that can be harvested, given a regrowth period.
b. Determine regrowth period, given the acres to be harvested.
c. The program shall not allow the acres uncut to be greater than the total number of acres. Verify this both at the user input and during the calculations. An infinite amount of time cannot yield and infinite amount of wood.

3. Print to the screen a table that shows the following:a. Year
b. Reforestation rate
c. Acres Reforested (i.e. ready for harvest)

1. 👍 0
2. 👎 0
3. 👁 134
1. #include <stdio.h>

#include <stdlib.h>

#include <math.h>

#include <iostream>

int main()

{

/* Declare and initialize variables. */

int year=1 ;

double Acres = 14000, uncut = 2500, Regrowth_rate = .02;

double reforest = 0;

while(year<=20)

{

uncut = uncut + (uncut*Regrowth_rate); // calculate growth

cout<< year <<"\t" << uncut << endl;

year++;

}

return 0;

}

1. 👍 0
2. 👎 0
posted by shahbaz

## Similar Questions

1. ### math

A rectangular sheet of metal, of area 440 sq.cm is folded into a cylinder, to enclose a volume of 1540 cu.cm. A circle whose diameter is equal to the width of the rectangular sheet is cut from the sheet. Find the ratio of the area

asked by rajshekhar on February 1, 2010
2. ### science

A timber specimen of 40.33 mm width,70.07 mm depth and 604mm length and its weight is 798.9g carried loads(kN): 4,6,8,10,12,14,16,18,20,22,24,25.7. and deflection(mm) 0.44,0.87,1.34,1.81,2.29,2.79, 3.39,4.17,5.42,7.21,11.02,21.94

asked by emy on September 30, 2011
3. ### accounting

PR 9-6bAmortization and depletion entries Data related to the acquisition of timber rights and intangible assets during the current year ended December 31 are as follows: a. On December 31, the company determined that \$3,400,000

asked by novalita on March 13, 2016
4. ### geometry

Consider the region in Quadrant 1 totally bounded by the 4 lines: x = 3, x = 9, y = 0, and y = mx (where m is positive). Determine the value of c such that the vertical line x = c bisects the area of that totally bounded region.

asked by borat on March 18, 2013
5. ### geometry

Consider the region in Quadrant 1 totally bounded by the 4 lines: x = 3, x = 9, y = 0, and y = mx (where m is positive). Determine the value of c such that the vertical line x = c bisects the area of that totally bounded region.

asked by borat on March 18, 2013
6. ### math

Consider the region in Quadrant 1 totally bounded by the 4 lines: x = 3, x = 9, y = 0, and y = mx (where m is positive). Determine the value of c such that the vertical line x = c bisects the area of that totally bounded region.

asked by borat on March 19, 2013
7. ### CRIMINAL JUSTICE

Discuss the three types of management styles that are reviewed in your course materials (Scientific Management, Human Relations Management, and Systems Management). * Which style do you believe would be the most effective to use

asked by dEAN on February 8, 2011
8. ### maths literacy

a carpenter has a length of timber 18,5 long.he wants to cut the timber onto 5 equal pieces.what will the length of each piece be in cm

asked by noluthando on April 6, 2016