Ch 3 Modifying Developed Programs and Critical Path Analysis Combine the problem 37,38 and 39 in Chapter 3 of your text into single menu driven program. Th

Ch 3 Modifying Developed Programs and Critical Path Analysis Combine the problem 37,38 and 39 in Chapter 3 of your text into single menu driven program. The program should:

• Display a menu consisting of three options:

Don't use plagiarized sources. Get Your Custom Essay on
Ch 3 Modifying Developed Programs and Critical Path Analysis Combine the problem 37,38 and 39 in Chapter 3 of your text into single menu driven program. Th
For $10/Page 0nly
Order Essay

1) Display table of the number of acres reforested,

2) Determine number of years for complete reforestation,3) Exit

• The user can only select one of these three options (display appropriate message if any other option is selected)

• If the first option is select, a table will be displayed as specified in problem 38 (and 37)

• If the second option is selected, the user will be prompted to enter the number of acres that were left standing (out of the total 14,000 acres) and the number of years needed for complete reforestation will be displayed

• If the third option is selected, the program ends

Note:

• You must #define the reforestation rate (0.02)

• You must #define the total acres (14000)

• The program will only end when the 3rd option is selected

• Perform the needed input validation to ensure the user enters only appropriate values

• Refer to the attached video for the expected program behavior

Tip:

• Clear the input buffer after the menu choice is read

• Initialize your menu choice variable to 0 to help you know when an invalid input was given 37. Assume that the area has a total of 14,000 acres, with 2500 acres uncut and a reforesta-
tion rate of 0.02. Print a table showing the number of acres forested at the end of each
year, for a total of 20 years.
38. Modify the program developed in Problem 37 so that the user can enter the number of
years to be used for the table.
Problems 145
39. Modify the program developed in Problem 37 so that the user can enter a number of acres
and the program will determine how many years are required for the number of acres to
be completely reforested.
Critical Path Analysis. A critical path analysis is a technique used to determine the time
schedule for a project. This information is important in the planning stages before a project is
begun, and it is also useful to evaluate the progress of a project that is partially completed.
One method for this analysis starts by dividing a project into sequential events and then di-
viding each event into various tasks. Although one event must be completed before the next
one is started, various tasks within an event can occur simultaneously. The time it takes to
complete an event, therefore, depends on the number of days required to finish its longest
task. Similarly, the total time it takes to finish a project is the sum of time it takes to finish
each event.
Assume that the critical path information for a major construction project has been
stored in a data file. Each line of the data file contains an event number, a task number, and the
number of days required to complete the task. The data have been stored such that all the task
data for the first event are followed by all the task data for the second event, and so on. A typ-3
ical set of data is shown in the following table.
Event
1
1
1
2
3
3
4
4
4
5
Task
15
27
36
15
18
26
15
26
27
16
Number of Days
3
6
4
5
4
1
2
7
7
4

Purchase answer to see full
attachment

Calculator

Calculate the price of your paper

Total price:$26

Need a better grade?
We've got you covered.

Order your paper