Question: C++ 2. In physics, an object that is in motion is said to have kinetic energy. The following formula can be used to determine a

 C++ 2. In physics, an object that is in motion is

C++

2. In physics, an object that is in motion is said to have kinetic energy. The following formula can be used to determine a moving obiects kinetic energy The variables in this formula are as follows: KE is the kinetic energy M is the object's mass in kilograms (kg) V is the object's velocity in meters per second (mps) . . Design a function named kineticEnergy 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 has. Use a single function to get your input. Call it input and use pass by reference in this function. If any input is less than or equal to zero write a message to the console saying an improper value has been input and start the process over. Use a function to write your output to the console. Call it outputResults. Name your program XXX A03 02, where XXX are your first, middle and last initial. Run this problem using an object's mass of 3.2 kg. and an object's velocity of 32 mps

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!