Question:
Implement a Bubble Sort algorithm in C++ that generates a list of 10 random integers and sorts them in ascending order. Each time the program is run, it should use as its input the randomly generated list, sort it using bubble sort and output a sorted list.
The program should:
1. Display the randomly generated list.
2. Display the final outcome of each pass of the sorting process.
3. Display the final sorted list.