Question: I'm in an intro level Java programming class, and failing miserably at solving this problem. I need this application done in terms of what someone

I'm in an intro level Java programming class, and failing miserably at solving this problem. I need this application done in terms of what someone could do in the first few weeks of learning Java(ie no imports or shortcuts that absolute beginners wouldn't know how to use.) I apologize if this lengthens the process.

Java Program: Create an application that determines gravitational potential energy in joules for 3 objects based upon their inputted height (in meters and the ground is considered to be a zero height position.) and relevant mass (in kg).The output window displays all 3 in order from largest gravitational potential energy to smallest with each formula and calculation result. All input/output must accommodate 2 digits post decimal point. All Input/output done in JOptionPane

Gravitational Potential Energy Formula (in joules): Potential Energy = m *g * h

m is the mass of the object in kilograms

h is the height of the object in meters

g is the gravitational constant equal to 9.8 m/sec 2

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!