Python Program to write Finance Program Logic.
How does this program work?
- This code helps to how to write Finance Program logic.
Here is the code
s=int(input("Enter your State Name\n 1.Andhra Pradesh 2.Telangana :"))
if (s==1):
g = int(input("Enter the grams of gold submitted for loan:"))
print("Your state is Andhra Pradesh")
v = 3300
amt = 3300 * g
r = int(input("Enter the Rate of interest:"))
t = amt / 20
p = int(input("Enter the percentage of amount given after taking fade from it:"))
total = p * (amt - t) / 100
print("Total amount to be given is:", total)
i = (6 * r * total) / 100
print("Interest is:", i)
if ((total+i)<(amt-t)):
emi = (total + i) / 6
print("Total Emi paid per month is:", emi)
print("EMI should be paid in 6months or else Additional interest will occur\n")
else:
print("Loan amount is crossing the limits we can't help you")
elif (s==2):
g = int(input("Enter the grams of gold submitted for loan:"))
print("Your state is Telangana")
v = 3000
amt = 3000 * g
r = int(input("Enter the Rate of interest:"))
t = amt / 20
p = int(input("Enter the percentage of amount given after taking fade from it:"))
total = p * (amt - t) / 100
print("Total amount to be given is:", total)
i = (6 * r * total) / 100
print("Interest is:", i)
if ((total+i)<(amt-t)):
emi = (total + i) / 6
print("Total Emi paid per month is:", emi)
print("EMI should be paid in 6months or else Additional interest will occur\n")
else:
print("Loan amount is crossing the limits we can't help you")
else:
print("Wrong Choice")