Set-up and implementation code for a void function Max You are not required to write a complete C++ program but must write and submit just your responses to the four specific function related questions below: QC1: Write the heading for a void function called Max that has three intparameters: num1, num2 and greatest. The first two parameters receive data from the caller, and greatest is used to return a value as a reference parameter. Document the data flow of the parameters with appropriate comments*. QC2: Write the function prototype for the function in QC1. QC3: Write the function definition of the function in QC1 so that it returns the greatest of the two input parameters via greatest, a reference parameter. QC4: Add comments to the function definition* you wrote in QC3 that also states its precondition and postcondition.
Set-up and implementation code for a void function Max
You are not required to write a complete C++ program but must write and submit just your responses to the four specific function related questions below:
QC1: Write the heading for a void function called Max that has three intparameters: num1, num2 and greatest. The first two parameters receive data from the caller, and greatest is used to return a value as a reference parameter. Document the data flow of the parameters with appropriate comments*.
QC2: Write the function prototype for the function in QC1.
QC3: Write the function definition of the function in QC1 so that it returns the greatest of the two input parameters via greatest, a reference parameter.
QC4: Add comments to the function definition* you wrote in QC3 that also states its precondition and postcondition.

Trending now
This is a popular solution!
Step by step
Solved in 2 steps









