The given problem requires reading a series of numbers into an array of fixed length and then sorting them using the bubble sort algorithm. Here are the steps to solve the problem:
- Declare an array with a fixed length of 100.
- Read numbers from the user and store them in the array until a negative number is entered. Stop accepting input at this point.
- Implement the bubble sort algorithm to sort the numbers in ascending order.
- Output the sorted array to the user.
- Calculate the average (mean) of the numbers in the array and output it to the user.