Store numbers in lists. Modify the program from Exercise 2.6 so that the t and y values are stored in two lists t and y. Thereafter, transverse the lists with a for loop and write out a nicely...


Store numbers in lists. Modify the program from Exercise 2.6 so that the t and y values are stored in two lists t and y. Thereafter, transverse the lists with a for loop and write out a nicely formatted table of t and y values (using either a zip or range construction). Name of program file: ball_table2.py.


Exercise 2.6


Make a table of function values. Write a program that prints a table with t values in the first column and the corresponding y(t) = v0t−0.5gt2 values in the second column. Use n uniformly spaced t values throughout the interval [0, 2v0/g]. Set v0 = 1, g = 9.81, and n = 11. Name of program file: ball_table1.py

Nov 23, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here