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 to Expert-Tailored 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

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

Does it avoid using personal pronouns (such as I and me)?

Answered: 1 week ago

Question

Does it clearly identify what you have done and accomplished?

Answered: 1 week ago