The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Need help with the coding c++ on this problem ASAP!
Â
Write a program that outputs inflation rates for two successive years and whether the inflation 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 at least the following functions: a function to get the input, a function
to calculate the results, and a function to output the results. Use appropriate parameters to pass
the information in and out of the function. Do not use any global variables.