Question: please write a basic program in python for calculating the mass of sun with the given parameters, formulas, and with the final answer presented in

 please write a basic program in python for calculating the mass

please write a basic program in python for calculating the mass of sun with the given parameters, formulas, and with the final answer presented in kilograms using the "print" operator

thank you very much

Exercise 1.2 - Calculate the solar mass The solar mass can be calculated by using the relation: (1) Msun 472 - (1 AU) G. (1 yr)? In this task we will use approximate values for AU and G. The unit AU is an astronomical unit of length. Its value is defined to be the average distance between the Sun and Earth: 1 AU = 1.58 x 10-5 light years where 1 lightyear = 9.5 x 1012 km. The constant G is called the gravitational constant and has the following value: G= 6.674 10-11 m kg - 1 8-18-1 Write a program which calculates the solar mass by using equation (1). The calculated result must then be presented in kilogram using print. Your program should give that Msun 2.01 - 1030 kg Filename: solarmass.py

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!