Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2 Develop module interest.py with functions calculate_simple_interest, calculate_present_value, and calculate_compound_interest. Each function asks the user for the input required for the formula and returns

image text in transcribed

Problem 2 Develop module interest.py with functions calculate_simple_interest, calculate_present_value, and calculate_compound_interest. Each function asks the user for the input required for the formula and returns the calculated value. Sup*r*t s = simple interest p = principal r=rate t = term of loan F P= (1 + r)" P = present_value F = future_value rate = annual interest rate years = number_of_years A = P(1 +nt r n A = final amount P = initial principal balance r = interest rate n= number of times interest applied per time period t= number of time periods elapsed Write a program that lets the user select which calculation they want to use. Sample input/output might be as follows. Which calculation do you want to perform? Enter 1 for future value Enter 2 for compound interest Enter number of times interest applied: 12 Enter 3 for simple interest Enter number of time periods: 4 Enter 1, 2, or 3:1 Compound interest $12,208.95 Enter future value: 10000 Do you wish to continue? yeso: yes Enter rate:.05 Which calculation do you want to perform? Enter number of years: 4 Enter 1 for future value Present value $8,227.02 Enter 2 for compound interest Do you wish to continue? yeso: yes Enter 3 for simple interest Which calculation do you want to perform? Enter 1, 2, or 3:3 Enter 1 for future value Enter principal: 10000 Enter 2 for compound interest Enter interest rate:.05 Enter 3 for simple interest Enter term of loan: 4 Enter 1, 2, or 3:2 Simple interest $2,000.00 Enter initial principle: 10000 Do you wish to continue? yeso: no Enter interest rate:.05

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

More Books

Students also viewed these Databases questions