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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started