Please see an attachment for details Giving the algorithm:

Please see an attachment for details Giving the algorithm: Int partition_method(arr, bot, top): pin = arr[top] i = bot – 1 for] from bot to (top — 1} do: ifpin >= arr[j] then do: i = i + 1 swap arrlj] with arr[i] swap arr[i + 1] with the pin element at arr[top] return (i+ 1)Precondition: an array of numbers with initial bot = 0, and top = size of arr -1 Postcondition: 1. retur… Show more… Show more  Engineering & Technology Computer Science