Question: Selection.h added at the end for reference as called in line 16 Program sorttest4 generates an array of randomized mixed-case strings. You will note that,

 Selection.h added at the end for reference as called in line16 Program sorttest4 generates an array of randomized mixed-case strings. You willnote that, by default, all uppercase characters sort before the lowercase charactersdue to their underlying ASCII codes. For this assignment, modify program sorttest4such that it sorts according to a case-blind comparison of only the

Selection.h added at the end for reference as called in line 16

Program sorttest4 generates an array of randomized mixed-case strings. You will note that, by default, all uppercase characters sort before the lowercase characters due to their underlying ASCII codes. For this assignment, modify program sorttest4 such that it sorts according to a case-blind comparison of only the first character of each string. In the sorted array, "car" should come before "Bus". Further, "dog" and "Duck" should be considered equal since they both with the same letter, ignoring case. You will need to modify sorttest4 (make a backup copy of the original in case you need to go back to it). Add a sort comparison function, as was done in sorttest3. Then, modify the call to the sort function (line 58) to pass your function as the third parameter

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!