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.
Calculating Annual Inflation Rates. Annual rates of inflation are calculated using 12-month selections of the BLSâs Consumer Price Index. For example, to calculate the inflation rate for January 2017, subtract its CPI of 242.839 from last yearâs January 2016 CPI of 236.916. The result is 5.923.