Question: P5: get input value from command line Consider the simplest program for evaluting the formula y(t) = tot- 0.5gt2: vo = 3; g = 9.81;

P5: get input value from command line Consider the simplest program for evaluting the formula y(t) = tot- 0.5gt2: vo = 3; g = 9.81; t-0.6 print y Improve above program by letting users input v0 and t from command line using the following method. It also should set default values to v0-10 and default t value to 1. ( use argparse module) Your program should run like this: python p5b.py -v 5 -t0.8, which will assign 5 to v0 and 0.8 to t. python p5b.py -v 5 will assign 5 to vO and 1 to t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
