Using Bubble Sort Algorithm Show Display Names Following Sports Highest Number Team Player Q43796899
using the bubble sort algorithm, show how to display the namesof the following sports from highest number of team players to thelowest. Do not use any inbuilt sorting function.
sport(1).name=’Basketball’;
sport(1).teamnumber=5;
sport(2).name=’Cricket’;
sport(2).teamnumber=11
sport(3).name=’Water Polo’;
sport(3).teamnumber=7
sport(4).name=’Ice hockey’;
sport(4).teamnumber=6;
sport(5).name=’Rugby’
sport(5).teamnumber=15;
how can I use bubble sort?!
matlab
Expert Answer
Answer to using the bubble sort algorithm, show how to display the names of the following sports from highest number of team playe…
OR