Question: In physics, an object that is in motion is said to have (KE) kinetic energy. The following formula can be used to determine a
In physics, an object that is in motion is said to have (KE) kinetic energy. The following formula can be used to determine a moving object's KE: M= mass(kg) V= velocity(m/s) KE = % mv KE = Kinetic energy(J) %3D Write a program to colculate the amount of kinetic energy that the object has when given the object's mass (in grams) and velocity (in meters per second). Note that, mass of the object is enter in gram (g) unit. However, the programable to convert the mass in gram (g) to kilogram (kg) before calculating the Kinetic Energy (KE). Here is a sampie run: Input the object's mass (g):10000 Input the object's velocity (m/s): 5 The kinetic energy (Joules): 125.00 YOUR SUGGESTION: 1. Requirement Specification (2 marks) 2. Analysis (3 marks) 3. Design the algorithm of the program in pseudo-code or flowchart. (4 marks) 4. Write down your complete source code. Include documentation for the program at appropriate lines of code. (4 marks) 5. Testing and verification (a) Compile the progam. Record what is printed in Output Window. (2 marks) (b) Re-compile and enter different inputs. Record the output. (2 marks) (c) Do you feel you are getting valid output? Give your reason. (3 marks)
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
