Design an application that accepts 10 numbers and displays them in descending order. Us an array to store the numbers and Bubble Sort to sort the numbers.

question!

Sure! Here is a step-by-step guide to designing an application that accepts 10 numbers and displays them in descending order, using an array to store the numbers and Bubble Sort to sort the numbers:

1. Start by defining the main function of the application.

2. Inside the main function, declare an array of size 10 to store the numbers. Let's call it "numbersArray".

3. Prompt the user to enter 10 numbers one by one. Use a loop to iterate 10 times and store each number in the array.

4. Implement the Bubble Sort algorithm to sort the numbers in descending order. Bubble Sort compares adjacent numbers and swaps them if they are in the wrong order. Repeat this process until the array is fully sorted.

5. To implement Bubble Sort, use two nested loops. The outer loop will iterate n-1 times (10-1 times in our case) to represent the number of passes required. The inner loop will iterate from 0 to n-i-1 (where i is the current pass) and swap the adjacent elements if they are in the wrong order.

6. After implementing the Bubble Sort algorithm, the numbers in the "numbersArray" will be sorted in descending order.

7. To display the sorted numbers, use a loop to iterate through the array in reverse order (from index 9 to index 0) and print each number.

8. Test the application by running it and entering 10 different numbers.

That's it! By following these steps, you can create an application that accepts 10 numbers and displays them in descending order using an array and Bubble Sort algorithm.

To design an application that accepts 10 numbers and displays them in descending order using an array and Bubble Sort, you can follow these steps:

1. Create an array of size 10.
2. Prompt the user to enter 10 numbers, one at a time, and store them in the array.
3. Implement the Bubble Sort algorithm to sort the numbers in descending order.
a. In the Bubble Sort algorithm, you compare adjacent elements in the array and swap their positions if they are in the wrong order.
b. Repeat this process until the entire array is sorted.
4. After sorting, display the numbers in descending order.

Here's an example implementation in Python:

```python
def bubble_sort_descending(arr):
n = len(arr)
for i in range(n-1):
for j in range(n-1-i):
if arr[j] < arr[j+1]:
arr[j], arr[j+1] = arr[j+1], arr[j]

def main():
numbers = []
for i in range(10):
num = int(input("Enter number #{}: ".format(i+1)))
numbers.append(num)

bubble_sort_descending(numbers)

print("Numbers in descending order:")
for num in numbers:
print(num)

if __name__ == "__main__":
main()
```

With this implementation, the application will prompt the user to enter 10 numbers. After the user inputs the numbers, the application will sort them in descending order using the Bubble Sort algorithm and display the sorted numbers.