Question: Help, I need a Pseudo-Code and Java code for the problem statement below, It can NOT be in Python. Needs to function in Netbeans. Problem

Help, I need a Pseudo-Code and Java code for the problem statement below, It can NOT be in Python. Needs to function in Netbeans.

Problem Statement

When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period:

distance = (1/2) gravity * time2

The variables in the formula are as follows:

  • distance is the distance in meters

  • gravity is 9.8

  • time is the amount of time, in seconds, that the object has been falling.

  • Module main. Displays heading "Time" and "Falling Distance". Uses a loop to generate times 1-10. For each iteration of the loop, a function fallingDistance is called to calculate the distance the object falls. The time and distance are displayed under the headings.

  • Module fallingDistance. Accepts each time 1-10 and calculates the distance an object falls during that interval. The falling distance is returned to main.

Expected Outcome

Your results should be similar to the following (excluding the borders):

The distance an object travels in meters for times 110 seconds is as follows.

Time Distance
1 4.90
2 19.60
3 44.10
4 78.40
5 122.50
6 176.40
7 240.10
8 313.60
9 396.90
10 490.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!