Respuesta :

The code is in Java.

It calculates the height and velocity of a dropped pebble using the given formulas.

Comments are used to explain the each line.

//FallingBodies.java

public class FallingBodies

{

public static void main(String[] args) {

    //Declare the g as a constant

    final double g = 9.8;

   

    //Declare the other variables

    double t, height, velocity;

   

    //Set the time

    t = 23;

   

    //Calculate the height using the given formula

    height = 0.5 * g * t * t;

   

    //Calculate the velocity using the given formula

    velocity = g * t;

   

    //Print the height and velocity

    System.out.println("The height is " + height + " m");

 System.out.println("The velocity is " + velocity + " m/s");

}

}

You may read more about Java in the following link:

brainly.com/question/13153130