Retired
Can you find stealing? (retired)
Description:
In this kata, you will be given the principal of a loan, the interest rate, and the years, and you will find if the bank asked for more than that. By the way, assume that all loans are on compound interest.(The amount that the bank asked for is amount_payed). If the bank is stealing, return the fine, which is the (compounded_amount - amount_payed)*2 if the amount stolen is less than 1000, if it is between 1000, and 2000, return (compounded_amount - amount_payed)*3, and if it is any more than that return (compounded_amount - amount_payed)*10. If the bank isn't stealing, just return 0.
Good Luck!
Similar Kata:
Stats:
Created | Jul 23, 2024 |
Warriors Trained | 9 |
Total Skips | 0 |
Total Code Submissions | 8 |
Total Times Completed | 7 |
Python Completions | 7 |
Total Stars | 0 |
% of votes with a positive feedback rating | 0% of 4 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 2 |
Average Assessed Rank | 8 kyu |
Highest Assessed Rank | 8 kyu |
Lowest Assessed Rank | 8 kyu |