Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a Pseudo-Code for this problem statement. Directions This exercise requires designing a program which solves the problem described in the problem statement below.

I need a Pseudo-Code for this problem statement.

Directions

This exercise requires designing a program which solves the problem described in the problem statement below. Provide comments in your pseudo-code and Java program as necessary.

Your solution must include three components:

  1. Flowchart

  2. Pseudo-code

  3. Program coded

  4. Program output

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

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_2

Step: 3

blur-text-image_3

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

1. Television more Over watching faceing of many problems ?

Answered: 1 week ago

Question

Is there a link between chronic stress and memory function?

Answered: 1 week ago