Selection Sort Programmatically Implement in C++ the necessary program that does the following: 1. Asks the user and gets at least 5 names as user input from the keyboard, and stores them in an array 2. Displays the names from the array on the screen 3. Sorts the names in the array using the SELECTION SORT function (you write this Selection sort as a subfunction and call it from the main function) 4. Displays the sorted names on the screen from the array Save your code file as "yourLastname_Firstname_SelectionSort.cpp" and submit your .cpp file.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 16PE
icon
Related questions
Question
Selection Sort Programmatically.
Implement in C++ the necessary program that does the following:
1. Asks the user and gets at least 5 names as user input from the keyboard, and stores them in an array
2. Displays the names from the array on the screen
3. Sorts the names in the array using the SELECTION SORT function (you write this Selection sort as a subfunction and call it from the main function)
4. Displays the sorted names on the screen from the array
Save your code file as "yourLastname_Firstname_SelectionSort.cpp" and submit your .cpp file.
Transcribed Image Text:Selection Sort Programmatically. Implement in C++ the necessary program that does the following: 1. Asks the user and gets at least 5 names as user input from the keyboard, and stores them in an array 2. Displays the names from the array on the screen 3. Sorts the names in the array using the SELECTION SORT function (you write this Selection sort as a subfunction and call it from the main function) 4. Displays the sorted names on the screen from the array Save your code file as "yourLastname_Firstname_SelectionSort.cpp" and submit your .cpp file.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning