Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Kinetic energy equals / time the mass of an object times its velocity squared. You are to write a program that asks the user to
Kinetic energy equals / time the mass of an object times its velocity squared. You are to write a program that asks the user to calculate the kinetic energy of a moving object. The user will enter the mass in kilograms and the velocity in meters/second. Your program will accept these values in the main function and pass them to a programmer defined subroutine where the kinetic energy in joules will be calculated. That value will be passed back to the main program where it will be outputted to the display. Sample input and output for this program are shown below. Rubric Introductory comments and well formatted code----- Variable named appropriately for the application- Values properly passed to function------- Properly coded function--------- Values printed correctly from main program---- Total ----- 8 2 Problems @ Javadoc Declaration Console X x Kinetic (Java Application) C:\Program Files (x86) Vavaljre1.8.0_91\bin\javaw.exe (Sep 11, 2016, 9:13:51 AM) Enter the mass in kilograms 21 Enter the velocity in meters per second 55 The kinetic energy of this object is 31762.5 joules Kinetic energy equals / time the mass of an object times its velocity squared. You are to write a program that asks the user to calculate the kinetic energy of a moving object. The user will enter the mass in kilograms and the velocity in meters/second. Your program will accept these values in the main function and pass them to a programmer defined subroutine where the kinetic energy in joules will be calculated. That value will be passed back to the main program where it will be outputted to the display. Sample input and output for this program are shown below. Rubric Introductory comments and well formatted code----- Variable named appropriately for the application- Values properly passed to function------- Properly coded function--------- Values printed correctly from main program---- Total ----- 8 2 Problems @ Javadoc Declaration Console X x Kinetic (Java Application) C:\Program Files (x86) Vavaljre1.8.0_91\bin\javaw.exe (Sep 11, 2016, 9:13:51 AM) Enter the mass in kilograms 21 Enter the velocity in meters per second 55 The kinetic energy of this object is 31762.5 joules
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started