Here is the expected output for InflationRate Part1: Enter the old and new consumer price indices: 238.170 239.513 Inflation rate is 0.563884 Each lab (InflationRate Part1, InflationRate Part2 and InflationRate Part3) will build successively on the previous submission. Part 1 Write a C++ program to read in two consumer price indexes and print out the inflation rate. 1. Start with the student starter code and follow the instructions in the code. 2. Instructions to complete are tagged in comments like the ones below. They will always begin with // TODO. // TODO #1: declare two float variables for the old consumer price index (cpi) and the new cpi // TODO #2: Read in two float values for the cpi and store them in the variables // TODO #3: call the function InflationRate with the two cpis // TODO #4: print the results
Here is the expected output for InflationRate Part1:
Enter the old and new consumer price indices: 238.170 239.513
Inflation rate is 0.563884
Each lab (InflationRate Part1, InflationRate Part2 and InflationRate Part3) will build successively on the previous submission.
Part 1
Write a C++
1. Start with the student starter code and follow the instructions in the code.
2. Instructions to complete are tagged in comments like the ones below. They will always begin with // TODO.
// TODO #1: declare two float variables for the old consumer price index (cpi) and the new cpi
// TODO #2: Read in two float values for the cpi and store them in the variables<br>
// TODO #3: call the function InflationRate with the two cpis
// TODO #4: print the results
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images