Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a well-documented, Python program, hmuk1Q3.py that simulates tossing a baseball, straight-up, in the air. The speed imparted to the baseball is v0=25m/s(55mph). The equation

image text in transcribedimage text in transcribed

Write a well-documented, Python program, hmuk1Q3.py that simulates tossing a baseball, straight-up, in the air. The speed imparted to the baseball is v0=25m/s(55mph). The equation of motion is y(t)=v0t2gt2. The physical parameter g=9.8s2m. Use Python lists to represent time t and the quantities y(t),y(t) and y(t). The latter two quantities are instantaneous speeds and accelerations respectively. The instantaneous speed is formed as an approximation y(tn)tntn1y(tn)y(tn2). Similarly, the instantaneous acceleration is y(tn)tntn2y(tn)y(tn1). Hints: Form the time list from 0 to 5.1 seconds in increments of 100ms. Lists for y(t) and y(t) will have one and two less elements, respectively, than the list for y(t). Accordingly, set the first term of y(0)=0. Similarly, set the first two terms y(0)=y(0.1)=0. Write a well-documented, Python program, hmwk1Q4.py that simulates tossing a person hurling a rock horizontally at a speed of vx=10m/s from a bridge 50m above the river. baseball, straight-up, in the air. The equation of motions are: x(t)=vxt and y(t)=502gt2. The physical parameter g=9.8z2m. Use Python lists to represent time t and the quantities x(t),y(t) and y(t). Hints: Form the time list from 0 to 3.2 seconds in increments of 100ms. The list for y(t) will have one less element than the list for y(t). Accordingly, set the first term of y(0)=0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

What is the geometry of each species? a. PO33 b. NO3

Answered: 1 week ago

Question

Why We Form Relationships Managing Relationship Dynamics?

Answered: 1 week ago