+ 6

# would help me plz

The kinetic energy of a moving object is given by the formula KE = ½mv2 where m is the object’s mass and v is its velocity. Modify the program you created in Project 5 so that it prints the object’s kinetic energy as well as its momentum. Below is an example of the progam input and output: Mass: 5 Velocity: 2.5 The object's momentum is 12.5 The object's kinetic energy is 15.625 here my code>>> # Modify the following code # Request the input mass = float(input("Enter the object's mass: ")) velocity = float(input("Enter the object's velocity: ")) # Compute the results momentum = mass * velocity # Display the results def momentum (m,v): return(float(m)*float(k)) def kinecticEnergy(m,v): return(float(m)*float(v)*float(k)) m=input(" the object momentum is :>") velocity=input(" the object kinetic is :>") print("the mass is" + str(m)) print("the velocity is" + str(v)) print("the momentum is" + str(momentum(M,k))) print("the kinectic Energy is" +str(kinecticEnergy(m,k)))

28th Sep 2023, 7:10 PM
Maria Gonzalez + 2
# Request the input mass_kg = float(input("Enter the object's mass in kilograms: ")) velocity_m_s = float(input("Enter the object's velocity in meters per second: ")) # Compute the results momentum_kg_m_s = mass_kg * velocity_m_s kinetic_energy_joules = 0.5 * mass_kg * velocity_m_s**2 # Display the results print("The object's momentum is", momentum_kg_m_s, "kg*m/s") print("The object's kinetic energy is", kinetic_energy_joules, "joules")
29th Sep 2023, 10:16 AM + 3
is it not working?
28th Sep 2023, 7:13 PM
D1M3 + 1
# Request the input mass1 = 7.0 velocity1 = -5.0 mass2 = 5.0 velocity2 = 2.5 # Compute the results momentum1 = mass1 * velocity1 kinetic_energy1 = 0.5 * mass1 * velocity1**2 momentum2 = mass2 * velocity2 kinetic_energy2 = 0.5 * mass2 * velocity2**2 # Display the results print("For the first object:") print("The object's momentum is", momentum1) print("The object's kinetic energy is", kinetic_energy1) print("\nFor the second object:") print("The object's momentum is", momentum2) print("The object's kinetic energy is", kinetic_energy2)
28th Sep 2023, 7:39 PM
D1M3 + 1
Should be tight
28th Sep 2023, 7:39 PM
D1M3 0
What is wrong with the Code?
28th Sep 2023, 7:13 PM
D1M3 0
It’s not working when I post it when I run the check on it
28th Sep 2023, 7:15 PM
Maria Gonzalez 0
Okay i try
28th Sep 2023, 7:15 PM
D1M3 0
Thanks ☺️
28th Sep 2023, 7:16 PM
Maria Gonzalez 0
# Request the input mass = float(input("Enter the object's mass: ")) velocity = float(input("Enter the object's velocity: ")) # Compute the results momentum = mass * velocity kinetic_energy = 0.5 * mass * velocity**2 # Display the results print("The object's momentum is", momentum) print("The object's kinetic energy is", kinetic_energy)
28th Sep 2023, 7:17 PM
D1M3 0
I think you Over coded this
28th Sep 2023, 7:18 PM
D1M3 0
Thank you you’re a lifesaver. I’m doing classwork and it’s getting pretty hard.☺️🩷
28th Sep 2023, 7:23 PM
Maria Gonzalez 0
Now i have to test the mass 7kg and -5m/s and 5kg and 2.5m/s
28th Sep 2023, 7:33 PM
Maria Gonzalez 0
I do my best
28th Sep 2023, 7:34 PM
D1M3 0
Thank Youuuu
28th Sep 2023, 7:35 PM
Maria Gonzalez 0
*right
28th Sep 2023, 7:39 PM
D1M3 0
Hello
29th Sep 2023, 1:38 PM
Zafar Tursunov 0
Yes
29th Sep 2023, 2:47 PM
Nathanael Benedict 0
I'm not good at physics
29th Sep 2023, 4:48 PM
Ibrahim 0
Open a course Go the code part Click it There you will get the AI Enjoy
30th Sep 2023, 5:59 PM
Shinjay Saha 