Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3: Gravity Calculator [Gravity.java] 25 points When dropped from a height, in ideal conditions a free-falling object is expected to reach the maximum acceleration

Question 3: Gravity Calculator [Gravity.java] 25 points When dropped from a height, in ideal conditions a free-falling object is expected to reach the maximum acceleration of -9.81 m/s2. The object will accelerate while falling until it either reaches the ground or has attained its terminal velocity. Write a program that accepts two input values from the user: the initial position (height) in meters from where the object was dropped, and the observation time in seconds when. Your program will output the following values: 1. The distance in meters that the object has fallen to in the given time, e.g. it was dropped from 500 meters and has fallen 100 meters in 2 seconds 2. The distance of the object from the ground at the given time, e.g. having fallen 100 meters the distance from the ground now is 400 meters. The following equation should be used for your calculations: x(t) = 0.5 at2 + vit + xi where : x(t) is the position of the object at a given time. This is one of the outputs values you are looking to calculate a is the acceleration of the object, which should always be -9.81 m/s2 t is the time taken as input from the user vi is initial velocity, which should always be zero since the object was dropped from a resting position xi is the initial position, or height, taken as input from the user Input (Example): Enter height in meters: 400 Time in seconds: 3 Output (Example): After being dropped from 400 meters, the object fell 150 meters in 3 seconds. The distance from the ground at the time was 250 meters.

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

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions