Question: Write a program that ask the user to enter the price of a shopped item or a product one year ago and today. The program
Write a program that ask the user to enter the price of a shopped item or a product one year ago and today. The program contains two functions: The first one calculates the difference in the price between the current value and the . value one year ago. Use the following function prototype: void price diff(float current, float one year_ago); The second function estimates the percentage change rate between the old and the new prices. Use this prototype: void change rate(float current, float one year_ago) The output should be something similar to the following: Enter the current price Enter the price one year ago the difference in the price the change rate in the price- % increase
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
