Following program shows you how to calculate interest.
In this program we get investment, interest rate and time from user and calculate interest using following formula
Interest = investment X interestRate X time / 100
investment = float(input("Enter investment:")) interestRate = float(input("Enter interest rate:")) time = float(input("Enter number of years:")) interest = investment * interestRate * time / 100 print("Interest amount is: ", interest)
Enter investment: 250000 Enter interest rate: 24 Enter number of years: 3 Interest amount is: 180000.0
On By Navya
Getting 'No EntityManager with actual transaction available for current thread' exception while removing some data
How to fix Found use of deprecated [org.hibernate.id.SequenceGenerator] sequence-based id generator; use org.hibernate.id.enhanced.SequenceStyleGenerator instead