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.
Four steps to calculate consumer price index (CPI) CPI is constructed through four main steps. Step 01â A base year is selected for the calculation. The CPI of the base year is set as 100. Step 02 â Based on how a typical consumer spends his / her money on purchasing commodities, a basket of goods and services is defined for the base year.