Question: Write the function header and the program function call for the following question. We want to write a function (function name getKE) to calculate
Write the function header and the program function call for the following question. We want to write a function (function name getKE) to calculate the kinetic energy KE (unit: Joule) of an object from its mass m (unit: kg) and velocity v (unit: m/s) using this formula: KE = 1/2mv. What should be the correct function header: For an object of 5 kg with a velocity of 2 m/s, write a line of code to calculate its KE and assign it to a variable Q:
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
doubleKineticEne... View full answer
Get step-by-step solutions from verified subject matter experts
