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 calculated by comparing prices of standard goods across time -- things like a loaf of white bread or a gallon of milk. This information is either given to you in your problem (In 1962, the cost of milk was $1.00 a gallon...) or you can look up the real-life prices on the Consumer Price Index (CPI).