Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function in python which takes in a dictionary, ` abcb _ rates ` , and the amount of money to be deposited. The

Write a function in python which takes in a dictionary, `abcb_rates`, and the amount of money to be deposited. The function should return the effective interest rate, also in percentage points. It is guaranteed that there are no gaps within the range of deposits, and that the promotional interest rates being applied starts from $0. Once the amount deposited is above the range the reaming amount will be charged 0.05%
For Example:
abcb_rates ={
'$0- $10000': 3.00,
'$10000- $30000': 4.00,
}
calculate(abcb_rates, 40000)
Expected output:
2.7625
Explanation:
The value is gotten via 10000/40000*3.00+20000/40000*4.00+10000/40000*0.05.
The first $10000 is under 3% interest, next $20000($30000- $10000) is under 4%, and the last $10000($40000- $30000) is under 0.05% interest.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions