Modular programming is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.
So if the value of the price index for the current year is equal to 165, and last year's value was 150, the rate would be calculated as: Inflation rate = (165 - 150) X100= 10.
The formula for calculating the Inflation Rate looks like this: ((B - A)/A)*100. Where A is the Starting number and B is the ending number. So if exactly one year ago the Consumer Price Index was 178 and today the CPI is 185, then the calculations would look like this: