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
Looking for a solution written from scratch with No plagiarism and No AI?
WHY CHOOSE US?
We deliver quality original papers |
Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected |
Free revisions |
We offer our clients multiple free revisions just to ensure you get what you want. |
Discounted prices |
All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount |
100% originality |
We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI |
On-time delivery |
We will deliver your paper on time even on short notice or short deadline, overnight essay or even an urgent essay |