Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

m _ str = input ( ' Input m: ' ) # do not change this line # change m _ str to a float

m_str = input('Input m:
') # do not change this line
# change m_str to a float
# remember you need c
# e=
5 print("e =", e) # do not change this line
100%
(2:1)
Terminal
codio@vistagranite-lotusplate: /workspace$
Collapse
Einstein
Einstein's famous equation states that the energy in an object at rest equals its mass (m) times the square of the speed of light (c).(The speed of light is 300,000,000ms.)
E=mc2
Complete the provided skeleton code so that it:
Accepts the mass of an object (remember to convert the input string to a number, in this case, a float).
Calculate the energy, e, using Einstein's equation above
Prints e
Prints e
Test 1
Check your answer against the solution with 2 different user inputs: 1(Check 1) and 3(Check 2)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

2 7 6 . .

Answered: 1 week ago

Question

1. Let a, b R, a Answered: 1 week ago

Answered: 1 week ago