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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
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
question
Mathematics, 28.01.2020 06:31
question
Mathematics, 28.01.2020 06:31
Questions on the website: 13722363