University of Houston Programming Kinetic and Potential Energy Project

Programming Assignment 6 (Kinetic and Potential Energy)1
Kinetic Energy (KE) is given by ๐พ๐ธ = ๐‘š๐‘ฃ 2 where m is the mass of an object
2
(kilograms) and v is the velocity (meters/second).
Potential Energy (PE) is given by ๐‘ƒ๐ธ = ๐‘š๐‘”โ„Ž where m is the mass of an
object (kilograms), g is the acceleration due to gravity (a constant which
equals 9.81 m/s2) and h is the height (meters).
KE and PE are measured in Joules (1 Joule = 1 kg m2/s2).
Create an application in VB that allows the user to enter an objectโ€™s mass,
velocity, and height and displays the objectโ€™s KE and PE. The application
should have a two functions: KineticEnergy that accepts an objectโ€™s mass
(kilograms) and velocity (meters/second) as arguments and PotentialEnergy
that accepts an objectโ€™s mass (kilograms), acceleration due to gravity (m/s2),
and height (meters) as arguments. The function should return the objects KE
and PE (3 decimal places).
Input validation: Use TryParse method for input validation. Do not accept a
negative number for the mass, velocity, and height. Ensure that all values are
numeric. The Clear button must clear the text boxes and the label that displays
Kinetic and Potential Energy.
The name of Programming Assignment 6 is KPENERGY. Name the
folder PA6_YourGroup (e.g., PA6_Group1). The designer view
should be as shown below.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER