vectors. Your task is to write and test the following procedures which work on
doubles and on
doubles: As you write each procedure, extend your
main()so that it tests the procedure.
swapwhich swaps two
doubles. (Note that these are not necessarily in vectors.)
sortTwowhich sorts two doubles, so that the first argument becomes the smaller of the two arguments.
displayVectorthat displays a vector of
cout, putting a single space between each vector element.
sortVectorwhich sorts a vector of doubles. The algorithm will be discussed in class.