Question
How do I complete step on python programming? 4. Function Two: simpleInterest Specification: The second function you will write should be called 'simpleInterest'. Your function
How do I complete step on python programming?
4. Function Two: simpleInterest Specification: The second function you will write should be called 'simpleInterest'. Your function should take three (3) arguments: P - the amount of principal; R - the interest rate per year as a percentage; and t - the time period in years. The function should return one (1) number containing the total accrued amount. The total accrued amount should be calculated using the following simple interest formula: Total_accrued_amount = P(1 + rt), where r is the interest rate per year as a decimal, not as a percentage (recall, to get a decimal version of the percentage, just divide the percentage by 100 - e.g., the decimal version of 10% is 0.10). Note: we pass non-whole-number-values for any of the arguments. (Normally we will not warn you of this, but since this is the first real Python lab, this is an extra hint. Note 2: Do not do any explicit rounding. Example Test Case: simpleInterest(5000, 10, 1) returns 5500.0
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