need help with this

generate only the pseudocode. No charting is required, but you will have to incorporate the bubble sort algorithm to ensure the selling prices are in order so you can determine the median selling price. Do not assume that they will be entered in order.

Problem:

Input the selling prices of all homes in Botany Bay sold during the year 2002 and determine the median selling price. The median of a list of N numbers is The middle number of the sorted list, if N is odd. The average of the two middle numbers in the sorted list, if N is
even.(Hint: After inputting the prices into an array, sort that array.)

To solve this problem and determine the median selling price, you can follow these steps using pseudocode:

1. Input the selling prices of all homes in Botany Bay sold during the year 2002 into an array called "sellingPrices".
2. Sort the "sellingPrices" array in ascending order using the bubble sort algorithm.
3. Find the length of the "sellingPrices" array and store it in a variable called "length".
4. Check if the length "length" of the array is odd or even.
5. If the length is odd, the median selling price is the middle number of the sorted list. In pseudocode, you can calculate it as:
- Set a variable called "medianIndex" to the floor division of "length" by 2.
- The median selling price will be "sellingPrices[medianIndex]".

If the length is even, the median selling price is the average of the two middle numbers in the sorted list. In pseudocode, you can calculate it as:
- Set a variable called "middleIndex1" to "length" divided by 2.
- Set a variable called "middleIndex2" to "middleIndex1" minus 1.
- The median selling price will be the average of "sellingPrices[middleIndex1]" and "sellingPrices[middleIndex2]".

6. Output or return the calculated median selling price.

Note: Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. The algorithm repeats this process until the list is sorted.