Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a C code that meets the following guidelines/requirements Question 2 (30 marks) Timber Regrowth A challenge in timber management is to determine how many
Create a C code that meets the following guidelines/requirements
Question 2 (30 marks) Timber Regrowth A challenge in timber management is to determine how many acres to leave uncut after harvesting in a forest so that the harvested area is reforested in a certain period of time. It is assumed that reforestation take place at a known constant rate, r. 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 +1 where i represents the year, 0 after harvesting is completed, and 1, 2, 3 represents the number of years after harvesting (thus Ao represents the acres uncut after harvesting is completed, and A,,12, 43, represents the reforested acres after years 1, 2, 3, ...) r is the reforestation rate expressed as a fraction (for example 0.05 means that the forested acres are increases by 5% at the end of a year) You are responsible for developing a software tool that supports analysis of reforestation. Given (from the user) the number of total acres, . a minimum value for acres uncut, a maximum value for acres uncut, and reforestation rate, show a table in the console that increments the values of uncut acres (from the given minimum to the maximum values) and for each of these values the total number of years it takes to totally restore the forest. The table shall contain 20 rows. The following shows a sample interaction with the user 1106F 03 otal acres: 1 Acres Uncut Minimum: Acres Uncut Maximum User Input eforestation rate: 0 orest: Forest 1 rea:min max5000.00 orestation Rate Area Start Num Years For Total Reforestation Results Displayed you want to quit (y): Complete the project using the following guidelines Definitions Define a structure type, FOREST, that contains 5 members, an array to store the name of the forest, and 4 members to store the data values obtained from the user (see the above list) Use symbolic constants to eliminate magic numbers in your program. o o Function: main Declares a structure variable of type FOREST and one or two arrays for storing table data Use a loop to repeat the process (get user input, fill in the table data and print a table) until the user wishes to quit. o o Question 2 (30 marks) Timber Regrowth A challenge in timber management is to determine how many acres to leave uncut after harvesting in a forest so that the harvested area is reforested in a certain period of time. It is assumed that reforestation take place at a known constant rate, r. 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 +1 where i represents the year, 0 after harvesting is completed, and 1, 2, 3 represents the number of years after harvesting (thus Ao represents the acres uncut after harvesting is completed, and A,,12, 43, represents the reforested acres after years 1, 2, 3, ...) r is the reforestation rate expressed as a fraction (for example 0.05 means that the forested acres are increases by 5% at the end of a year) You are responsible for developing a software tool that supports analysis of reforestation. Given (from the user) the number of total acres, . a minimum value for acres uncut, a maximum value for acres uncut, and reforestation rate, show a table in the console that increments the values of uncut acres (from the given minimum to the maximum values) and for each of these values the total number of years it takes to totally restore the forest. The table shall contain 20 rows. The following shows a sample interaction with the user 1106F 03 otal acres: 1 Acres Uncut Minimum: Acres Uncut Maximum User Input eforestation rate: 0 orest: Forest 1 rea:min max5000.00 orestation Rate Area Start Num Years For Total Reforestation Results Displayed you want to quit (y): Complete the project using the following guidelines Definitions Define a structure type, FOREST, that contains 5 members, an array to store the name of the forest, and 4 members to store the data values obtained from the user (see the above list) Use symbolic constants to eliminate magic numbers in your program. o o Function: main Declares a structure variable of type FOREST and one or two arrays for storing table data Use a loop to repeat the process (get user input, fill in the table data and print a table) until the user wishes to quit. o oStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started