Python Program Please solve. Topic - Modules
Write a module to calculate the compound interest on a sum taken. Import
this module to a program and offer a rebate of 500/- if the amount exceeds
1,00,000/- and the customer is a senior citizen.
Answers
Answered by
0
Answer:
# Python Program to find Compound Interest
import math
princ_amount = float(input(" Please Enter the Principal Amount : "))
rate_of_int = float(input(" Please Enter the Rate Of Interest : "))
time_period = float(input(" Please Enter Time period in Years : "))
ci_future = princ_amount * (math.pow((1 + rate_of_int / 100), time_period))
compound_int = ci_future - princ_amount
print("Future Compound Interest for Principal Amount {0} = {1}".format(princ_amount, ci_future))
print("Compound Interest for Principal Amount {0} = {1}".format(princ_amount, compound_int))
Attachments:
Similar questions
English,
1 month ago
English,
1 month ago
Computer Science,
2 months ago
India Languages,
2 months ago
Math,
10 months ago
Political Science,
10 months ago
English,
10 months ago