This program explains how to calculate simple interest using methods. The formula for calculating simple interest is I = P * T * R / 100.0 where I is interest, P is principal, T is time in years and R is interest rate per annum.
Calculate Simple Interest Using Methods CODE class CalculateSimpleInterest OUTPUT Interest for Rs 5000.0 for 2.0 years at the rate of 11.25% p.a. is Rs 1125.0 DESCRIPTION This program shows how to calculate simple interest using methods. At THINGS TO TRY
|