i am having trouble with functions write a program that outputs
inflation rates for two successive years and determines whether
the inflation is increasing or decreasing. Ask the user to input
the current price of an item (currPrice), its price one year ago
(oneYearPrice) and two years ago (twoYearPrice). To calculate
the inflation rate for a year, subtract the price of the item
(for that year) from the price of the item one year ago and then
divide the result by the price a year ago. For example, the
current inflation (currInf) would be oneYearPrice subtracted
from currPrice and then divided by oneYearPrice. Similarly, last
years inflation (prevInf) would be twoYearPrice subtracted from
oneYearPrice and than divided by twoYearPrice. Your program must
contain at least the following functions: a function to
calculate the results, and a functions to output the results.
Use appropriate parameters (function arguments) to pass the
information in and out of the functions. (Do not use global
variables). The point of