Question: It should be done in c++ Problem 4. (30 points) You are given an array of strings where the array already contains one word per

It should be done in c++It should be done in c++ Problem 4. (30 points) You are

Problem 4. (30 points) You are given an array of strings where the array already contains one word per entry. This means each entry only contains lowercase and uppercase letters from the English alphabet. Your task is to write functions that take in the array as the parameter that do the following: b) (10 points) Sort all the words in the alphabetical order in the array. The function should be void my_sort (string array ( ) , int size), where size is again the size of the array. The function need not return anything or print anything, just sort the contents of the given array. You may assume that you have already a built-in function to compare strings called bool compare (string si, string s2) that returns true if s1 is alphabetically less than s 2 (for example sl = ''apple'' and s2 = ''banana'') and returns false otherwise

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!