Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

INTRODUCTION A problem in timber management is determining how much of an area to leave uncut so that the harvested area is reforested in a

image text in transcribed

image text in transcribed

image text in transcribed

INTRODUCTION A problem in timber management is determining 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 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, are forested at the end of the first year. At the end of the second year, the number of acres forested is 105 + 0.05*105, or 110.25 acres ASSIGNMENT: Write a C program to read the total number of acres in an area, the number of acres that are uncut, the reforestation rate, and the number of years for which to calculate reforestation rates. Ensure that all values make physical sense: the number of acres in an area must be a positive number, the number of acres that are uncut must be a positive number that is less than the number of acres in an area, and the number of years must be a positive number. (Don't check for the reforestation rate to be positive-it is possible for soil conditions to lead to a zero or negative reforestation rate.) Ask the user to reenter any values that do not make physical sense using while loops until acceptable values are entered. Once acceptable values are entered, use a for loop to print a report that tabulates for the set number of years the number of acres reforested per year and the total number of acres forested at the end of each vear

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions