Background The following formula can be used to determine the distance an object falls due to gravity in a specific time period: d = 1² where d is the distance in meters, t is the time in seconds that the object has been falling, and g is the gravity constant on Earth which is equal to 9.8 m/s² The speed that an object falls is determined by the formula: using the time (t) and gravity (g) Assignment Description Write a program that will prompt the user for a starting time, ending time, and interval in seconds. The program will then calculate and generate a table like the one shown in the output example below that report the distance and speed of an object in free fall starting at the start time, incrementing by the specified interval, and ending at a value within the specified end time. Accept This Assignment D Sample Output Falling Distance Calculator Enter the start time: 10 Enter the end time: 100 Enter the time interval: 15 Seconds Speed Distance 10 25 40 55 70 85 100 98 245 392 539 980 490 3062 7840 s = gt 14823 24010 35402 49000

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

when creating these programs I use pycharm/python

**Falling Distance Calculator**

**Background**

The following formula can be used to determine the distance an object falls due to gravity in a specific time period:

\[ d = \frac{gt^2}{2} \]

where \( d \) is the distance in meters, \( t \) is the time in seconds that the object has been falling, and \( g \) is the gravity constant on Earth which is equal to \( 9.8 \, m/s^2 \).

The speed that an object falls is determined by the formula:

\[ s = gt \]

(using the time \( t \) and gravity \( g \))

**Assignment Description**

Write a program that will prompt the user for a starting time, ending time, and interval in seconds. The program will then calculate and generate a table like the one shown in the output example below that reports the distance and speed of an object in free fall starting at the start time, incrementing by the specified interval, and ending at a value within the specified end time.

[Accept This Assignment]

**Sample Output**

```
Falling Distance Calculator

Enter the start time: 10
Enter the end time: 100
Enter the time interval: 15

Seconds   Speed   Distance
-------   -----   --------
     10      98         490
     25     245       3062
     40     392       7840
     55     539     14823
     70     686     24010
     85     833     35402
    100     980     49000
```
Transcribed Image Text:**Falling Distance Calculator** **Background** The following formula can be used to determine the distance an object falls due to gravity in a specific time period: \[ d = \frac{gt^2}{2} \] where \( d \) is the distance in meters, \( t \) is the time in seconds that the object has been falling, and \( g \) is the gravity constant on Earth which is equal to \( 9.8 \, m/s^2 \). The speed that an object falls is determined by the formula: \[ s = gt \] (using the time \( t \) and gravity \( g \)) **Assignment Description** Write a program that will prompt the user for a starting time, ending time, and interval in seconds. The program will then calculate and generate a table like the one shown in the output example below that reports the distance and speed of an object in free fall starting at the start time, incrementing by the specified interval, and ending at a value within the specified end time. [Accept This Assignment] **Sample Output** ``` Falling Distance Calculator Enter the start time: 10 Enter the end time: 100 Enter the time interval: 15 Seconds Speed Distance ------- ----- -------- 10 98 490 25 245 3062 40 392 7840 55 539 14823 70 686 24010 85 833 35402 100 980 49000 ```
Expert Solution
Step 1

ALGORITHM:-

1. Take input for the parameters from the user.

2. Calculate the value of speed and distance for the input intervals.

3. Print the result.

4. Finish.

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education