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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!