1. Include the iostream, fstream, string, and cctype libraries in your program.
2. Start main()
Declare three function prototypes:
a. A void function to input the names in "names.dat" file and save them in an array.
b. A void function which uses a "selection sort" to sort the names in the array.
c. A void function to output the names after sorting.
3. Call a function (Step 2 a above) to get the names from the file "names.dat" into the array
4. Call a function to sort the strings (Step 2 b above).
5. Call a function (Step 2 c above) to display the sorted names.
6. End man()
7. Write the source code for the function to get the names in the file and save them in an array
(Step 2 a above).
8. Write the source code to use a "selection sort" to sort the names in the array (Step 2 b above).
9. Write the source code to output the names after sorting (