1. Write a void function this passed three integers by reference. The function should rearrange the parameter values so that the first parameter will get the smallest value; the second parameter the middle value; and the third parameter the largest value. Because this is a void function there is no return value.
2. This is actually a single question but requires two functions. Write two overloaded functions to calculate areas.Both should be called area and should return a double. The first will calculate the area of a circle using double that is passed to it that represents the radius.The second will calculate the area of a rectangle using two doubles that are passed to it. These functions should check that the values passed are non-negative.