Question: #1: declare two float variables for the old consumerprice index (cpi) and the new cpi #2: Read in two float values for the cpi and
#1: declare two float variables for the old consumerprice index (cpi) and the new cpi #2: Read in two float values for the cpi and store themin the variables #3: call the function calcInflationRate with the two cpis #4: print the results
Test for program to work: Enter the old and new consumer price indices: 238.170 239.513 Inflation rate is 0.563884
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
