Task 1 Make the sort project the startup project. In the project, note that there is a text file containing a list of names. Write a program that will: read the names into an array of strings. Call a...


See attached images


C++


Task 1<br>Make the sort project the startup project. In the project, note that there is a text file containing a list of names.<br>Write a program that will:<br>read the names into an array of strings.<br>Call a sort function to sort the names in ascending order. You need to write the sort function (follow the<br>example given in the book).<br>Define and call another function to display the (now sorted) names in the array.<br>Note: Your program should be able to handle up to 50 names. Write an end-of-file controlled loop to<br>read the data into the array so that your program can handle up to 50 names.<br>Your sort() and display() functions should both include parameters for the array and the actual number<br>of strings in the array.<br>

Extracted text: Task 1 Make the sort project the startup project. In the project, note that there is a text file containing a list of names. Write a program that will: read the names into an array of strings. Call a sort function to sort the names in ascending order. You need to write the sort function (follow the example given in the book). Define and call another function to display the (now sorted) names in the array. Note: Your program should be able to handle up to 50 names. Write an end-of-file controlled loop to read the data into the array so that your program can handle up to 50 names. Your sort() and display() functions should both include parameters for the array and the actual number of strings in the array.
1<br>mary<br>sue<br>andy<br>4<br>fred<br>billy<br>zeke<br>jenny<br>john<br>7<br>8<br>

Extracted text: 1 mary sue andy 4 fred billy zeke jenny john 7 8

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here