One bank offers the following saving account rates
Write a function money that has one parameter - initial deposit. The function returns the amount of money on the account after 1 year using rate rules listed above.
Write a functin total that has one parameter - the number of customers opened saving account on January 1, 2019. The function reads the initial deposit for each customer. The function prints the amount of money on each account after 1 year (use function money). In addition, function finds and returns total amount of money on all accounts after 1 year.
Write main that reads number of customers opened saving account on January 1, 2019. Use function total to find and print total amount of money on all accounts after 1 year.
RecycleBank calculates the RecycleBank Points that they are awarding to individual homes in the following manner:
1 lb of
recycled materials = 2.5
RecycleBank Points
Write a function recycle that doesn't have any parameters. The function reads a sequence of positive integers. Each integer is a number of pounds a household recycled in one week. First negative or zero integer will terminate the input. The function returns the total number of RecycleBank points a household earned for all weeks, the average number of points that household earned per week, and the number of weeks your function did calculations for.
Write main to test your function.
For example, if the input is: 10 15 6 -3
The program outputs: