At Westonci.ca, we connect you with experts who provide detailed answers to your most pressing questions. Start exploring now! Discover a wealth of knowledge from experts across different disciplines on our comprehensive Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

the program will ask for float numbers until a negative value is entered. each float number (except the negative value) will be stored in a vector list. then, sort the list using the bubble sort algorithm (see below) and display the content of the list. finally, ask the user for an element to search, and use the sequential search algorithm (see below), display the position where the element was found; otherwise, notify the user the element was not found. otherwise, notify the user the element was not found. Bubble sort algorithm Modify the bubble sort algorithm from your textbook to work with a float vector. void bubbleSort(int list[], int length) { int temp; for (int iteration = 1; iteration < length; iteration++) { for (int index = 0; index < length - iteration; index++) if (list[index] > list[index + 1]) { temp - list[index]; list[index] = list[index + 1); list[index + 1) = temp; } } } Sequential search algorithm Modify the sequential search algorithm from your textbook to work with a float vector. int seqSearch(const int list[], int listLength, int searchItem) { int loc; bool found = false; loc = 0; while (loc < listLength && ! found) Sequential search algorithm Modify the sequential search algorithm from your textbook to work with a float vector. int seqsearch(const int list[], int listLength, int searchItem) { int loc; bool found = false; loc = 0; while (loc < listLength && ! found) if (list[loc] == searchItem) found = true; else loc++; if (found) return loc; else return -1; } Expected output Sample 1 a Enter a Enter a Searching app! Enter a positive number or a negative number to stop): 5 Enter a positive number (or a negative number to stop): 8 Enter a positive number or a negative number to stop): 11 a positive number (or a negative number to stop): 3 a positive number or negative number to stop): 25 Enter a positive number or a negative number to stop): 47 a positive number or a negative number to stop): 31 Enter a positive number (or a negative number to stop): 28 a Enter a positive number or a negative number to stop): -5 List of values: 3 5 8 11 25 28 31 47 Search for a value in the list: 28 The element was found in position 5 using sequential search. Enter a Sample 2 Searching app! Enter a positive number or a negative number to stop): 5 Enter positive number or a negative number to stop): 8 Enter a positive number (or a negative number to stop): 11 Enter positive number (or a negative number to stop): 3 Enter positive number or a negative number to stop): 25 Enter positive number or a negative number to stop): 47 Enter a positive number or a negative number to stop): 31 Enter a positive number or a negative number to stop): 28 Pin Enter positive number (or a negative number to stop): -5 List of values: 3 5 8 11 25 28 31 47 Search for a value in the list: 20 The element was not found using sequential search. User input is in red.