Question: On python,Description Write a program that determines whether you should accept or reject a project using Net Present Value ( NPV ) and Internal Rate

On python,Description
Write a 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.
NPV=i=0NCFi(1+r)i
NPV=0=i=0NCFi(1+IRR)i
Requirements
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.
Accept/Reject Logic
Implement code to automatically determine if a project should be accepted or rejected.
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.
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.
Readability
Your code must be readable and easy to follow, using comments when necessary.
Bonus
MIRR Function
Implement a function to calculate MIRR.Write a 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.
Bonus
1. MIRR Function
Implement a function to calculate MIRR.
 On python,Description Write a program that determines whether you should accept

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!