Question: This program asks the user for the initial balance or principal (e.g. $1234.56), the interest rate (as a percentage but without the % sign), number
This program asks the user for the initial balance or principal (e.g. $1234.56), the interest rate (as a percentage but without the % sign), number of years, and how frequently compounded (supports the words "daily" for 365, "weekly" for 52, "monthly" for 12, "quarterly" for 4, and "annually" for 1.
If then displays the total accrued amount (i.e. the principal plus the interest). The output should look exactly like money. Make sure you create each of the functions appropriately. All input() and print() calls are in main() [do NOT use input() or print() in any ]. The file tests.py contains the unit tests that you will write for each function. Make sure to open that file and complete the required tests. EXAMPLE 1: Principal: $10000.00 Interest Rate: 3.875 Number of Years: 7.5 Frequency of Compounds (daily, weekly, monthly, quarterly, or annually): monthly You will have accrued $13366.37
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
