subject

#Python with def and loops Four investors deposited, each of them, an initial amount of 1050, 2400, 1300, and 3000 euros in a bank. In this strange bank, the initial value is increased every month by 1.5, 3., 1.7 and 3.5 euros, respectively. Note: this is not an usual interest rate. (Pay attention: as an example, in the first month after the first deposit (month 2) the first investor will have 1051,50 euros; in month 3 1053,00 euros... etc). However, every time a new deposit is made, the monthly interest is doubled. The new interest starts to be applied in the next month, after the deposit.

In this exercise, we will identify our months by numbers, being 1 the month of the first deposit.

During the 6 first months, investors are not allowed to make any new deposit. After that, they make a second deposit, corresponding to an amount of half the initial quantity. None of the four investors make the second deposit in the same month, but instead, but the 4 deposits occurred in months 9, 10, 13 and 14, respectively for the first, second, third and fourth investor. However, in month 20 all 4 investors made a third deposit, corresponding to an amount of 1/3 the quantity they had in month 7.

Write a code denoted investors. py that performs the following tasks:

calculate the amount of money each of the investors have month by month
plot the curve of money (y-axis) versus month (x-axis) for the third investor, for the 24 first months of investment.
print a report for all 4 investors. The print report should contain the following statements:
the name of the investor
the initial investment and the corresponding interest
the month each investor made their second deposit
the amount of money each of them has after the first 15 months, that is in the month 16.

The requirements of the code are the following:

Define a function denoted montlystatement to calculate the amount of money a given investor has per month. The arguments of that function must be (in this order): the initial value, the monthly interest, the month of the second deposit and the month for which the money is being calculated.
Suggestion: use lists to handle the names of the investors (make up names to identify them), the initial investment values and the monthly profit. Name these three lists as investor, money0 and fixinterest respectively.
Use the function montlystatement to fill the vector or array used to make a plot displaying the montly amount of money of the investor.
Suggestion: define a second function denoted plotmonthstatement make this plot.
The print statements for the investors should read like
"Investor (name) : initial investment xxx, second deposit in month xxx, balance in month 15: xxx"
where of course the names are decided by you but the "xxx" values should be calculated.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 23:00, nicog94
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
image
Computers and Technology, 23.06.2019 10:00, serenityharmon1
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
image
Computers and Technology, 23.06.2019 16:30, 19thomasar
How to do this programming flowchart?
Answers: 3
image
Computers and Technology, 23.06.2019 19:30, wilkinsonei4069
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a, b] se pot scrie ca produs de două numere prime? “.
Answers: 1
You know the right answer?
#Python with def and loops Four investors deposited, each of them, an initial amount of 1050, 2400...

Questions in other subjects: