Please help In physics, an object that is in motion is said to have kinetic ener
ID: 3770424 • Letter: P
Question
Please help
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 ? energy KE = 1/2 mv^2. 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 function named kinetic Energy that accepts an object's mass (in kilograms) and velocity (in meters per second) as arguments The function should return the amount of kinetic energy that the object hasExplanation / Answer
#include<stdio.h>
#include<iostream>
#include<conio.h>
using namespace std;
double kineticEnergy(double m, double v);
int main(){
double m,v,e;
cout<< "Enter mass of the object in kg : ";
cin>>m;
cout<<"Enter velocity in m/s : ";
cin>>v;
e=kineticEnergy(m,v);
cout<<"Kinetic Energy: "<<e;
getch();
return 0;
}
double kineticEnergy(double m, double v)
{
return (m*v*v/2);
}