Question
Help, I need a Flowchart for the problem statement listed below? When an object is falling because of gravity, the following formula can be used
Help, I need a Flowchart for the problem statement listed below?
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
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