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
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