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 of time. It is assumed that reforestation takes place at a known rate per year, depending on climate and soil conditions. The reforestation rate expresses this growth as a function of the amount of timber standing. For example, if 100 acres are left standing and the reforestation rate is .05, then at the end of the first year, there are 100+.05*100 or 105 acres forested. At the end of the second year, the number of acres forested is

105+.05*105 or 110.25 acres.

Assume that the total area to be forested, the uncut area, and the reforestation rate are known. Write a program to determine the percentage of the total area that is forested after X years. The program should be user friendly with prompts and comments where needed. Remember the forest service depends upon you. Output should give the input data plus the number of acres forested and the percentage of the total that this represents.

Use the following input data to test the program:

************************************************** ******************************

Area Number Total Area Uncut Area Reforestation Rate

************************************************** ******************************

45 10,000 100 .05

83 1,000 50 .08

153 20,000 500 .10

192 14,000 3,000 .02

234 6,000 1,000 .01

years 20

i cant figure out how to start the for loop?

i know i need a LCV (loopcontrol variable) only one i could think of using is years like

for ( int years; years>0; years--)

but if this works what do i put after ? an if statement? to make it do the calculating? any suggestions would be greatly welcomed

thanks in advance

416 18,000 1,500 .05