Computers and Technology

#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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, jcastronakaya
Apex q: what does a low employment rate indicate? a. not many people are earning high salaries b. not many people are going to college c. not many people are renting their homes d. not many people have jobs
Answers: 2
image
Computers and Technology, 22.06.2019 22:30, reinasuarez964
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
image
Computers and Technology, 24.06.2019 16:00, kamo90
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
image
Computers and Technology, 25.06.2019 04:30, precioussmith76
What should be used when performing vehicle maneuvers?
Answers: 1
Do you know the correct answer?
#Python with def and loops Four investors deposited, each of them, an initial amount of 1050, 2400...

Questions in other subjects:

Konu
Mathematics, 18.07.2019 16:30
Konu
Chemistry, 18.07.2019 16:30
Konu
Mathematics, 18.07.2019 16:30