a) Write a C++ user?defined function named Middle_Value which takes three input parameters (all integers), and
returns the middle value.
b) Complete the following C++ program to include the definition for the Middle_Value function you've developed
above. Call it in the main function to produce the expected output shown below.
Program Specifications
You must modify the program in the following ways.
Add comments to the code. It should be clear, based on your comments, what each line (or set of
lines) does in the program. Before each function, you should provide a short overview of what the
function does.
- Modify the function main so that it performs the required function.
- Add a function called Middle_Value that returns the middle value
- Add a function Get_Numbers that gets 3 integer values for the user
- Add a function Print_Middle_Value that prints the middle value.
- You must use if statements within this program.
- You must use value return for the function Middle_Value.