Reference no: EM133694483
Python Assignment: program that determines whether you should accept or reject a project using Net Present Value (NPV) and Internal Rate of Return (IRR). Use the following formulas for NPV and IRR, respectively.
NP V = X N i=0 CFi (1 + r) i (1) NP V = 0 = X N i=0 CFi (1 + IRR) i (2) Requirements
1. Functions NPV and IRR calculations should be implemented as functions. At a minimum, the NPV function should accept a list of cash flows and a discount rate, and the IRR function should accept a list of cash flows and a guess at the IRR.
2. Accept/Reject Logic Implement code to automatically determine if a project should be accepted or rejected.
3. Tests You should provide sample code that tests the various endpoints of your code, including a projects that are accepted and rejected, positive and negative NPVs, and various IRRs.
4. Correctness Your code must provide the correct answer, both on whether or not to accept or reject the project and the calculation of NPV and IRR.
5. Readability Your code must be readable and easy to follow, using comments when necessary.