Question: Write a program segment to sort the given array in alphabetical order using the selection sort method. Pet[0] dog Pet [1] cat Pet [2] =
Write a program segment to sort the given array in alphabetical order using the selection sort method.
![Pet[0]](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1608/2/0/3/8055fdb3e1d827231608203804270.jpg)
Pet[0] "dog" Pet [1] "cat" Pet [2] = "bird" %3D Pet[3] "snake" Pet [4] "duck" Pet [5] "fish" %3D %3D Pet[6] "rabbit" Pet [7] "mouse" Pet [8] "pony" %3D %3D Pet[9] "frog" %3D
Step by Step Solution
3.46 Rating (166 Votes )
There are 3 Steps involved in it
Declare firstpet temp As String Declare k j index N M As Integer W 1 Set ... View full answer
Get step-by-step solutions from verified subject matter experts
