Sort the sequence in non-decreasing order using the bubble sort method. Print the resulting sequence.
Now prompt the user to enter a positive integer and return the position where that integer is in the sorted sequence (return -1 if it is not in the sequence). Repeat this until the user enters a non-positive integer.
As a comment at the beginning of your program you should do a case analysis for this problem: problem statement, analysis, design, implementation, and testing.