Write a program that outputs the inflation rates for two successive years and whether the inflation trend is increasing or decreasing. Ask the user to input the current price of an item and its price one year and two years ago. 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. Your program must contain the following functions:
• A function which gets the input (returning all three prices).
• A function to calculate the results (takes the three prices as input and returns the two inflation rates).
• A function to output the results.
Use appropriate parameters to pass the information into and out of the three functions. Do not use any global variables.
C++
