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.
Inflation is the change in the price level from one year to the next. The change in inflation can be calculated by using whatever price index is most applicable to the given situation. The two most common price indices used in calculating inflation are CPI and the GDP deflator. Know, though, that the inflation rates derived from different price indices will themselves be different.