Answer:
Written in Python
def energyvector(mass):
c = 2.9979 * 10**8
energy = mass * c ** 2
print(round(energy,2))
Step-by-step explanation:
This line defines the function
def energyvector(mass):
This line initializes the speed of light
c = 2.9979 * 10**8
This line calculates the corresponding energy
energy = mass * c ** 2
This line prints the calculated energy
print(round(energy,2))