Hi could you help me this is really hard to do in python Pro
Hi could you help me this is really hard to do in python.
Project 2 Kinetic Energy Objectives Practice modular design with functions In physics, an object that is in motion is said to have kinetic energy. Use the following simplified formula to determine a moving object\'s kinetic energy: where E is the kinetic energy, m is the object\'s mass in kilograms, and v is the object\'s average speed in meters per second. Average speed can be computed from the distance and time duration an object moves. For example, if a car travels 85 kilometers in 30 minutes, then its average speed is 42.5 kilometers per hour. When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specified time period: where d is the distance in meters, g is 9.8, and t is the amount of time, in seconds, that the object has been falling. Note that g is a predefined constant in this project. Write a program to calculate the kinetic energy when an object reaches ground falling from a certain height in the sky. Assume there is no obstacle between the ground and the location that the object starts in sky. The program should prompt users for the distance in feet from its position in the sky to the ground and the mass of the obiect in pounds. Note that 1 ft = 0.3048 m (see http://vnvv. meters-to- feet.com/feet-to-nieters.php). 1 pound = (1 / 2.2046) Kilograms = 0.453592 Kilograms (see ttp://www.metric-conversions.org/weight/kilograms-to-pounds.htm) User interface specifications Input The program prompts for the two inputs, making sure their unit is clear to users. The two inputs must be in the order of distance and mass. (Please read the problem descriptioin above.) o Output o Display the result, descriptively and friendly o Make sure to display units for all numbers as appropriateSolution
This is a matlab code
Find out the answer.
g = 9.8;
prompt = \'Value of d in ft\';
d = input(prompt);
t = sqrt(2*d/g); % time of flight
v = d/t; % average velocity
prompt = \'Mass of the object in pounds\';
m=input(prompt);
E = m*v^2/2; % Kinetic energy
display(num2str(E))
