Sort students marks using bubble and insertion algorithms

The learner will create two sorting algorithms in Java programming language. The learner will create an optimised bubble sort function that sorts students’ marks in ascending order by repeatedly swapping adjacent elements within an array if they are in the wrong order.

The learner will also create an insertion sort function that sorts students’ marks in ascending order by building a sorted array, one element at a time.

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.