Question
PLEASE explain in comments each aspect of what you have done and why. Thank you for paying attention. This is for JAVA Create a new
PLEASE explain in comments each aspect of what you have done and why. Thank you for paying attention.
This is for JAVA
Create a new class called GravityCalculator. Copy and paste the following initial version: import java.io.*; public class GravityCalculator { public static void main(String[] arguments){ double gravity =-9.81; // Earth's gravity in m/s^2 double initialVelocity = 0.0; // starting velocity of the object double fallingTime = 10.0; // time in seconds that the object falls double initialPosition = 1000.0; // Starting position in meters, the calculation will determine the ending position in meters double finalPosition = 0.0; System.out.println("The object's position after " + fallingTime +" seconds is "+finalPosition + " m."); } } Run it Modify the example program to compute the position of an object after falling for 10 seconds, outputting the position in meters. The formula in Math notation is: x(t) = 0.5at^2 + vit + xi
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started