Andrew K.

asked • 01/15/21

Python_Lab_2_Functions

An object’s momentum is its mass multiplied by its velocity.  The kinetic energy of a moving object is given by the formula

KE=(1/2)mv2, where m is the object’s mass and v is its velocity squared. 

 

Write two functions one for momentum and the other for kinetic energy.

The momentum function must have two required parameters and calculates/prints the object's momentum.


The kinetic energy function must have two required parameters and calculate/print the

kinetic energy.

 

Write a program that accepts an object’s mass (in kilograms) and velocity (in meters

per second) as inputs and then outputs its momentum and kinetic energy by calling the functions.


1 Expert Answer

By:

Inactive Tutor answered • 01/16/21

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.