function kejoules = kineticEnergy(masskg,velocityms)
%kineticEnergy calculate translational kinetic energy of a moving object given
%           mass and velocity
%
%consumes: masskg: the mass of the object in kg
%          velocityms: velocity of the object in meters per second
%
%produces: kejoules: translational kinetic energy of the object in joules
%
%examples:
%       >> kineticEnergy (10,2)
%       ans = 
%           20
%       >> kineticEnergy (2,5)
%       ans = 
%           25
%       >>
%
%Becky Buxbaum for CISC106, section 080, 10/01/2007
kejoules = .5 * masskg * velocityms^2;
return;
end