Question: Write one c + + function to do all of the following. It may be either a void or value returning function. It must take

Write one c++ function to do all of the following. It may be either a void or value returning function. It must take two parameters, both double. You may add additional parameters if you want to.
If the two parameters you must use are named a and b (you can name them what you want), you must compute the following (all results should allow fractional (decimal) values).
The sum of a and b(a+b)
The difference of a and b(a-b)
The product of a and b(a**(b))
The quotient of a and b(ab)
These four values must be sent back to the calling function (this function does not print them).
Write one c + + function to do all of the

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 Programming Questions!