Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

complete the program as follows: 1. read object_mass and object_velocit…

Question

complete the program as follows:

  1. read object_mass and object_velocity from input as floats, respectively.
  2. compute object_momentum using the formula object_momentum = object_mass * object_velocity.
  3. output \object momentum is \ followed by the value of object_momentum to five digits after the decimal point.

ex: if the input is:
4.0
9.0
then the output is:
object momentum is 36.00000
1
2 \\\ your code goes here \\\
3

Explanation:

Step1: Read input as floats

object_mass = float(input())
object_velocity = float(input())

Step2: Calculate momentum

object_momentum = object_mass * object_velocity

Step3: Format and print output

print(f"Object momentum is {object_momentum:.5f}")

Answer:

object_mass = float(input())
object_velocity = float(input())
object_momentum = object_mass * object_velocity
print(f"Object momentum is {object_momentum:.5f}")