Ch 3 Modifying Developed Programs and Critical Path Analysis

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:

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

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper