Question: Start by putting all your code in a file called portfolio.py. Create a function called loadinvestments that takes in the investmentFilename and returns a list

 Start by putting all your code in a file called portfolio.py.

Start by putting all your code in a file called portfolio.py. Create a function called loadinvestments that takes in the investmentFilename and returns a list of possible investment options: name, cost, and estimated return. You will be given a file of actual investment options along with specific directions for that file on how to obtain the three pieces of information necessary for this assignment. Then make a function called optimizelnvestments that takes the list of possible investments along with the amount of money available to spend. This function should return both the optimal return on investment amount as well as the actual investments selected to achieve this optimal return. Implement this function using dynamic programming

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