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 a key concept in economics that represents the increase in the price of consumer products over a period of time. It can also be used to calculate deflation, or a drop in prices. Calculating inflation requires a consumer price index or historical price records and a formula. You can use the formula to calculate inflation over almost any period of time.