Question: Using the program c... Both problems are based on the same Timber Regrowth model. A problem in timber management is to determine how much of
Both problems are based on the same Timber Regrowth model. 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. A reforestation equation expresseses 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 C reforestation rate is 0.05, then 100+0.05 x 100, or 105 acres, will be forest at the end of the first year. At the end of the second year, the number of acres of forest will be 105 + 0.05 x 105, or 110.25 acres. At the end of the third year, the number of acres of forest will be 110.25 +0.05 x 110.25, or 115.76.25 AitrAi Assume that there are 14,000 acres total with 2,500 acres uncut and that the reforestation rate is 0.02. Print a table showing the number of acres reforested at the end of each year, for a total of 20 years. [Suggestion: First write your program based on the numbers given above in the example. That is, find the 1. reforestation of 100 acres with a reforestation rate of 0.05 for a total number of 3 years. Modify this simple program to solve the larger problem with a lower reforestation rate and a larger area. Self-study Question: Since you know the number of years before preforming the calculations, which kind of loop should u use? Pre-test loop, i.e., w hile? Post-test loop, i.e., do-while? Counting loop, i.e., for?] Modify your previous program so that the user can enter the total number acres and the number of uncut acres. The reforestation rate will remain fixed at 0.02. Your program will display the initial parameters, e.g, total number of acres, number of uncut acres, and the reforestation rate. The program will compute and 2. display the number of years it will take until the number of acres cut will be completely renewed. [Note: In one vear the number of reforested acres may be ess than the total number of acres, while the next year the number of reforested acres may actually exceed the original total number of acres. That means, it is unlikely that at the end of the last year you will find that the forest has reached the exact size at which it started. Beware of "off-by-one" type errors, i.e., a program incorrectly reports a number that, in this case, reports a year that is one year too early or one year too late.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
