Question: Using OOP, write a C++ program that will read in a file of names. The file is called Names.txt and should be located in the
Using OOP, write a C++ program that will read in a file of names. The file is called Names.txt and should be located in the current directory of your program. Read in and store the names into an array of 30 names. Sort the array using the selection sort or the bubblesort code found in your textbook. List the roster of students in ascending alphabetical order. Projects using global variables or all code is in main() will result in a grade submission of 0.
List of names in Names.txt:
Jackie
Sam
Bill
Tom
Mary
Paul
Zev
Barb
John
Sharon
Dana
Dominic
Steven
Padro
Katey
Kathy
Darius
Angela
Mimi
Jesse
Kenny
Lynn
Hector
Brittany
Jenn
Joe
Chloe
Geena
Sylvia
Dean
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
