Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Write a function named "sort3" that takes three floating point arguments, call them "x" , "y" , and "z", and modifies their values, if necessary, in

Write a function named "sort3" that takes three floating point arguments, call them "x" , "y" , and "z", and modifies their values, if necessary, in such a way as to make true the following inequalities: x _ y _ z .

The function should return no value. To take an example, if the following code fragment is executed

float a = 3.2, b = 5.8, c = 0.9;

sort3 (a, b, c);

cout << a << " " << b << " " << c << endl;

then the output will be

0.9 3.2 5.8

The function sort3 is allowed to make calls to other functions that you have written.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question