Question: 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,

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

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 Databases Questions!