Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started