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 inflation rate is based upon the consumer price index (CPI). The CPI inflation rates in the table are presented both on a monthly basis (compared to the month before) as well as on a yearly basis (compared to the same month the year before).