Question: Problem 2 ( 15 points) We have a body of mass m(kg). When a force F(N) acts on it, according to Newton's second law, the

 Problem 2 ( 15 points) We have a body of mass

Problem 2 ( 15 points) We have a body of mass m(kg). When a force F(N) acts on it, according to Newton's second law, the body will get an acceleration a (m/s2). Remember that F=ma. Write an expression that calculates F for the following mass and acceleration pairs: Then, make a function force_to_acceleration that calculates the acceleration of a body of mass m[kg] when a force F[N] is applied on it. Remember to use a good docstring! Also, remember to write enough comments throughout your code. Calculate the acceleration of a body of mass 150kg when forces F of 100,22 and 450(N) are applied to it. Problem 3 (20 points) The acceleration of a body can be approximated by the ratio of the change of a body's speed (u2-u1) over a time span (t1-t1) as: a=(u2u1)/(t2t1). Write a function called acceleration(u1,u2,t1,t2) that takes the different speeds (u1,u2) of a body at times t1 and t2 and calculates the acceleration of the body. Save it in a separate .py file, not your main homework file. Remember to start the function with a good docstring. In your main homework file, import the function and calculate the acceleration of a body for the following times and speeds Calculate these numbers some other way to check that they are correct (in general, always check your code in this way). State in comments how you checked (calculator, web site, etc.). Name 2 test cases you could use to verify the code works as it should. Don't forget to use comments in your code, when appropriate

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!