```java
import java.util.*;
class PartiallyFilledArray {
double[] content; // content of the array
int size; // actual size of the array
// creating an array whose physical size is 100
PartiallyFilledArray() {
content = new double[100];
size = -1;
}
// creating an array whose physical size is given by maxSize
PartiallyFilledArray(final int maxSize) {
content = new double[maxSize];
size = -1;
}
// insertion
boolean insert(double data) {
// if stack is full return false
if (content.length == (size + 1))
return false;
size++;
content[size] = data;
return true;
}
// deletion
boolean delete(int index) {
// if it is an invalid index return false
if (size < index)
return false;
for (int i = index; i < size; i++) {
content[i] = content[i + 1];
}
size--;
return true;
}
// displaying all elements
void display() {
System.out.println("Displaying the elements:");
for (int i = 0; i <= size; i++) {
// displaying up to 2 digits after decimal
System.out.printf("%.2f ", content[i]);
}
System.out.println();
}
}
public class Main {
public static void main(String[] args) {
PartiallyFilledArray array = new PartiallyFilledArray(100);
// Generating 10 random double values and appending them to the array
Random random = new Random();
for (int i = 0; i < 10; i++) {
double value = random.nextDouble() * 200 - 100;
array.insert(value);
}
// Displaying the content of the array
array.display();
// Sorting the numbers in the array using insertion sort
array.insertionSort();
// Displaying the content of the array
array.display();
// Sorting the numbers in the array using selection sort
array.selectionSort();
// Displaying the content of the array
array.display();
}
}
```