Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP ASAP!! Question is asking to modify and extend the python code so that the codes will computer net present values of investment projects:

PLEASE HELP ASAP!! Question is asking to modify and extend the python code so that the codes will computer net present values of investment projects: project A, B, C, and D. These are the project cash flows for each project as you can see in the python code below only project A has been written within the code but all the other three have to be in it too!

for project A , coupons = [0, 0, 0, 0, 100000, 250000, 750000, 900000, 500000, 500000, 100000, 100000, 75000, 35000].

investement = 1400000

project B, coupons = [0, 0, 250000, 275000, 275000, 275000, 300000, 300000, 215000, 150000,0, 0, 0, 0]

investement = 650000

project C, coupons = [50000, 125000, 125000, 125000, 125000, 150000, 150000, 195000, 195000, 200000, 100000, 50000, 25000, 10000]

investement = 295000

project D, coupons = [750000, 600000, 500000, 75000, 15000, 0, 0, 0,0, 0,0,0,0,0]

investement = 375000

Below is the start up code:- (python)

term_struct = [0.015, 0.0175, 0.0225, 0.025, 0.0325, 0.0275, 0.0225, 0.0295, 0.0235, 0.0295, 0.0375, 0.0375, 0.0425, 0.045] project = 'A' coupons = [0, 0, 0, 0, 100000, 250000, 750000, 900000, 500000, 500000, 100000, 100000, 75000, 35000] initial_investment = 1400000 face_value = ###### INSERT YOUR CODE HERE ######## NPV = ###### INSERT YOUR CODE HERE ######## left_boundary = ###### INSERT YOUR CODE HERE ######## for t in range(-1,left_boundary,-1): factor = 1.0 for term in range(t,left_boundary,-1): factor ###### INSERT YOUR CODE HERE ######## NPV ###### INSERT YOUR CODE HERE ######## NPV = ###### INSERT YOUR CODE HERE ######## print('NPV of project ',project,' is: ',round(NPV,2)) 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions