Write a program that uses overloaded functions with reference parameters to read the length, width, and height of a rectangular solid and to read the radius of a sphere. The program then uses overloaded functions to compute the volume of a rectangular solid and of a sphere and to output the results with appropriate messages. For the volume functions use the default value 2.12 for each of the parameters and test the functions with all possible numbers of arguments in the function calls. Input validation: Do not accept negative values for any of the inputs.

Want an answer?