Write a program to gauge the rate of inflation for the past


Problem

Write a program to gauge the rate of inflation for the past year. The program asks for the price of an item (such as a hot dog or a one-carat diamond) both one year ago and today. It estimates the inflation rate as the difference in price divided by the year-ago price. Your program should allow the user to repeat this calculation as often as the user wishes. Define a function to compute the rate of inflation. The inflation rate should be a value of type double giving the rate as a percentage, for example 5.3 for 5.3%.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to gauge the rate of inflation for the past
Reference No:- TGS02745706

Expected delivery within 24 Hours