1a

Point of code is to simulate the frog hopping, and as it hops return a boolean if the frog has crossed the simulated distance needed or not

public boolean simulate () {

    int goalDistance1 = 0;

    for( int i = 0;  int i < FrogSimuation.maxhops(); i++ ) {

        int goalDistance1 = maxHops * hopDistance;

        if (goalDistance == goalDistance1) {
            return 1;
        }
        else {
            return -1;
        }

        int count = i;

    }
}

1b

Point of code is to see in which how many simulations the frog can cross the desired distane

public double runSimulations (int num) {

    double proportion = count/num;

    System.out.println(proportion);
}