Using list in python to do it : Instruct the user to enter their…
Question Answered step-by-step Using list in python to do it : Instruct the user to enter their… Using list in python to do it :Instruct the user to enter their weight.Edit t to ensure input is numeric.If so:Calculate the person’s mass = Weight / 32 ft/sec2A person’s mass is the same everywhere, but their weight changes when the gravity changes. You would weigh more on Jupiter than on Earth.Explanation:Weight = Mass times Gravitational accelerationGravitational acceleration on Earth = 32 ft/sec2Therefore, Mass = Weight / 32 ft/sec2Use the mass to calculate the person’s weight on each of the 9 (counting Pluto) planets in our solar system using the following arrays:Dim strPlanets() As String = {“Mercury”, “Venus”, “Earth”, “Mars”, “Jupiter”, “Saturn”, “Uranus”, “Neptune”, “Pluto”}Dim dblGravityFPerS2() As Double = {11.78, 29.09, 32.17, 12.37, 85.12, 36.34, 34.99, 46.15, 1.38}Put each of the weights into a 3rd parallel array.Output the planet names along with the weights. Engineering & Technology Computer Science Share QuestionEmailCopy link Comments (0)


