Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago