Background The following formula can be used to determine the distance an object falls due to gravity in a specific time period: d=²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² 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 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 30 70 85 100 ➖➖➖➖➖ 98 245 392 539 636 833 980 ‒‒‒‒‒‒‒ 490 3062 7840 14823 24010 s=gt 35402 49000

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

I got everything right. Just need help figuring out how to get the sample output looking right exact and be aligned right in python/pycharm. I included the assignment and output that is suppose to be and I included my work.

Background
The following formula can be used to determine the distance an object falls due to gravity in a specific time period:
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:
Accept This Assignment B
Sample Output
Falling Distance Calculator
Enter the start time: 10
Enter the end time: 100
Enter the time interval: 15
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.
Seconds Speed Distance
10
10
25
23
40
*
**
55
70
70
85
100
Falling Distance Calculator
98
245
432
392
539
686
833
980
490
3062
7840
d = g 342
14823
24010
35402
49000
s = gt
Transcribed Image Text:Background The following formula can be used to determine the distance an object falls due to gravity in a specific time period: 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: Accept This Assignment B Sample Output Falling Distance Calculator Enter the start time: 10 Enter the end time: 100 Enter the time interval: 15 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. Seconds Speed Distance 10 10 25 23 40 * ** 55 70 70 85 100 Falling Distance Calculator 98 245 432 392 539 686 833 980 490 3062 7840 d = g 342 14823 24010 35402 49000 s = gt
:
def main():
ᎥᏝ #0/
print("Falling Distance Calculator\n")
start = int(input("Enter the start time: "))
end = int(input("Enter the end time: "))
interval= int(input("Enter the time interval: "))
print("\n Seconds Speed
Distance")
print("
for i in range (start, end + 1, interval):
print("
{:.of}\t
{}\t
if __name__
main()
in for i in range(start, end + - 1, ...
Lab5 X
Seconds
"__main__":
10
25
40
55
70
85
100
pytest for test_Lab5.test_Lab5 x
Speed Distance
--------")
98
245
392
539
686
833
980
490
3062
7840
14823
24010
35402
49000
Process finished with exit code 0
{:.Of}\t". format (i, speed (i), distance (i)))
Transcribed Image Text:: def main(): ᎥᏝ #0/ print("Falling Distance Calculator\n") start = int(input("Enter the start time: ")) end = int(input("Enter the end time: ")) interval= int(input("Enter the time interval: ")) print("\n Seconds Speed Distance") print(" for i in range (start, end + 1, interval): print(" {:.of}\t {}\t if __name__ main() in for i in range(start, end + - 1, ... Lab5 X Seconds "__main__": 10 25 40 55 70 85 100 pytest for test_Lab5.test_Lab5 x Speed Distance --------") 98 245 392 539 686 833 980 490 3062 7840 14823 24010 35402 49000 Process finished with exit code 0 {:.Of}\t". format (i, speed (i), distance (i)))
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY