Question
Hello, this is a C++ . I have been working on this for 3 days and no WAY i can finish it. All information needed
Hello, this is a C++ . I have been working on this for 3 days and no WAY i can finish it. All information needed are bellow. Please help me and ask any questions you have.
Here are all informations you need:
Make sure the following requirements are met:
1- Modify the selection sort to sort string instead of integers - void selectionSort(string name[], int numStrings )
2- Test the revised selection sort with a driver program
3- Produce a report like the sample provided in the text.
Now, you can use this program below as a skeleton to complete the code:
Modify the selectionsort function presented so it sorts an erray of strings instead of ints. Test the function with a driver program.
//Inclode needed header files here.
int main()
{
const int SIZE = 20;
{ "Collins, Bill", "Smith, Bart", "Michalski, Joe", "Griffin, Jim", "Sanchez, Manny", "Rubin, Sarah", "Taylor, Tyrone", "Johnson, Jill", "Allison, Jeff", "Moreno, Juan", "Wolfe, Bill", "Whitman, Jean", "Moretti, Bella", "Wu, Hong", "Patel, Renee", "Harrison, Rose", "Smith, Cathy", "Conroy, Pat", "Kelly, Sean", "Holland, Beth" };
//Insert your code to complete this program.
}
Name String
// Set up the array of strings, in this case names string name[SIZE] = { "Collins, Bill", "Smith, Bart", "Michalski, Joe", "Griffin, Jim", "Sanchez, Manny", "Rubin, Sarah", "Taylor, Tyrone", "Johnson, Jill", "Allison, Jeff", "Moreno, Juan", "Wolfe, Bill", "Whitman, Jean", "Moretti, Bella", "Wu, Hong", "Patel, Renee", "Harrison, Rose", "Smith, Cathy", "Conroy, Pat", "Kelly, Sean", "Holland, Beth" };
It should look like the sample below when it runs
Allison, Jeff Collins, Bill Conroy, Pat Griffin, Jim Harrison, Rose Holland, Beth Johnson, Jill elly, Sean Michalski, Joe Moreno, Juan Moretti, Bella Patel, Renee Rubin, Sarah Sanchez, Manny Smith, Bart Smith, Cathy Taulor, Turone Whitman, Jean Wolfe, Bill wu, HongStep 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