Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Find the indicated partial derivative(s)

Answered: 1 week ago

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago