Question: using the bubble sort algorithm, show how to display the names of the following sports from highest number of team players to the lowest. Do
using the bubble sort algorithm, show how to display the names of the following sports from highest number of team players to the lowest. 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?!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
