iRaMpAgez
iRaMpAgez
07.11.2019 • 
Physics

)in physics, an object that is in motion is said to have kinetic energy. the following formula can be used to determine a moving object’s kinetic energy: ke = ½ mv2 the variables in the formula are as follows: ke is the kinetic energy, m is the object’s mass in kilograms, and v is the object’s velocity, in meters per second. write a method named kineticenergy that accepts an object’s mass (in kilograms) and velocity (in meters per second) as arguments. the method should return the amount of kinetic energy that the object has. demonstrate the method by calling it in a program that asks the user to enter values for mass and velocity.

Solved
Show answers

Ask an AI advisor a question