Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Newton's universal law of gravitation relates the gravitational force to mass and distance. This relationship is given by: FK,Sun = G. Mk.Msun / R2, where,
Newton's universal law of gravitation relates the gravitational force to mass and distance. This relationship is given by: FK,Sun = G. Mk.Msun / R2, where, NOTE: For each of the parts (i) to (iv), take a screenshot of the results obtained using your code and copy it to the given template. You also have to copy the completed Table 1 back to the given template. Submit a single.c code file for Question 4 which you wrote to produce the results in parts (i) to (iv). DATA to use: G-Gravitational constant given by, 6.67408 * 10-11 N m kg? Mk - Mass of the k-th planet in our solar system (See the data below) Msun - Mass of the Sun Using C Refer to the data given below on the planets' masses and their distance to Sun. Do the following. 1) You will compute the FK,Sun between each planet k = 1,2,...,6, in our Solar System and the Sun. Display your results for all the 6 planets with meaningful comments, following the sample output below. 5i) Compute the percentage difference between the Fk Sun between the earth and each planet using (Fk. Sun F3.sun) / F3.Sun X 100. Display your results with meaningful comments, following the sample output below. Write a code to compute your weight on different planets and complete Row 5 in Table 1. Your weight on a planet is evaluated by multiplying your weight on Earth by the relative surface gravity of the other planet. Assume that you weigh X kg (use your mass) on Earth. Display the results using your code following the sample output below and copy your results to complete the table. iv) Write a code to complete the Row 6 in Table 1 below. Display the results using your code following the sample output below and copy your results to complete the table. Planet's mass and its mean distance from Sun is given below. The mean distance from Sun to a specific planet is given in brackets and it is expressed in Astronomical Units (AUS). One AU is the average distance from the Sun's center to the Earth's center. It is equal to 150,000,000 kms. So, when you need to find the distance between a planet and Sun, first convert the AUs to Kms and then use it in your formula! [Masses expressed in Kgs] Masses of the celestial bodies (distances from Sun in AUS) Sun 1.9891 x 1030 Use: Mass of the Earth = 5.9736 x 1024 kg ; Radius of the Earth: 6.37 106 m; Earth's gravity = 9.8 m.sec2 Mercury 3.3022 x 1023 (0.39) Venus 4.8685 x 1024 (0.72) Earth 5.9736 x 1024 (1) Mars 6.4185 x 1023 (1.52) Jupiter 1.8986 x 1027 (5.20) Saturn 5.6846 x 1025 (9.54) NOTE: The objective of this exercise is to use only 1/0 statements, simple computational statements. The emphasis is on output result formatting and display, therefore do not use loops. Escape Velocity is given by: Vesc = (2.G.MK/rk)1/2, where he is the radius of a planet k, Mk is the mass of the planet; G is the gravitational constant Table 1: Planetary data 1 2 3 4 5 6 Mercury Venus Earth Mars Jupiter Saturn 0.382 0.949 0.532) 11.209 9.44 4,878 12,104 12,756 6,787 142,800 120,000 0.055 0.815 1 0.107 318 95 You must exactly print your results for each part as it appears below for all the 6 planets, displaying floating point values to 2 decimal places. 1 2 Typical (sample) output for planet 1 (Mercury) in each part: 3 4 Diameter (Earth=1) Diameter (km) Mass (Earth=1) Relative surface gravity at equator Your weight on the planets (N) Escape Velocity (V.co in 0.38 0.9 1 0.38 2.64 0.93 Gravitational force between Mercury and Sun = 4.47e+22 N 5 (0) (ii) Percentage difference for Mercury = 45.06 % Weight on Mercury = 183.75 N Escape velocity from Mercury = 3.49 km/s 6 km/s) (iv) Newton's universal law of gravitation relates the gravitational force to mass and distance. This relationship is given by: FK,Sun = G. Mk.Msun / R2, where, NOTE: For each of the parts (i) to (iv), take a screenshot of the results obtained using your code and copy it to the given template. You also have to copy the completed Table 1 back to the given template. Submit a single.c code file for Question 4 which you wrote to produce the results in parts (i) to (iv). DATA to use: G-Gravitational constant given by, 6.67408 * 10-11 N m kg? Mk - Mass of the k-th planet in our solar system (See the data below) Msun - Mass of the Sun Using C Refer to the data given below on the planets' masses and their distance to Sun. Do the following. 1) You will compute the FK,Sun between each planet k = 1,2,...,6, in our Solar System and the Sun. Display your results for all the 6 planets with meaningful comments, following the sample output below. 5i) Compute the percentage difference between the Fk Sun between the earth and each planet using (Fk. Sun F3.sun) / F3.Sun X 100. Display your results with meaningful comments, following the sample output below. Write a code to compute your weight on different planets and complete Row 5 in Table 1. Your weight on a planet is evaluated by multiplying your weight on Earth by the relative surface gravity of the other planet. Assume that you weigh X kg (use your mass) on Earth. Display the results using your code following the sample output below and copy your results to complete the table. iv) Write a code to complete the Row 6 in Table 1 below. Display the results using your code following the sample output below and copy your results to complete the table. Planet's mass and its mean distance from Sun is given below. The mean distance from Sun to a specific planet is given in brackets and it is expressed in Astronomical Units (AUS). One AU is the average distance from the Sun's center to the Earth's center. It is equal to 150,000,000 kms. So, when you need to find the distance between a planet and Sun, first convert the AUs to Kms and then use it in your formula! [Masses expressed in Kgs] Masses of the celestial bodies (distances from Sun in AUS) Sun 1.9891 x 1030 Use: Mass of the Earth = 5.9736 x 1024 kg ; Radius of the Earth: 6.37 106 m; Earth's gravity = 9.8 m.sec2 Mercury 3.3022 x 1023 (0.39) Venus 4.8685 x 1024 (0.72) Earth 5.9736 x 1024 (1) Mars 6.4185 x 1023 (1.52) Jupiter 1.8986 x 1027 (5.20) Saturn 5.6846 x 1025 (9.54) NOTE: The objective of this exercise is to use only 1/0 statements, simple computational statements. The emphasis is on output result formatting and display, therefore do not use loops. Escape Velocity is given by: Vesc = (2.G.MK/rk)1/2, where he is the radius of a planet k, Mk is the mass of the planet; G is the gravitational constant Table 1: Planetary data 1 2 3 4 5 6 Mercury Venus Earth Mars Jupiter Saturn 0.382 0.949 0.532) 11.209 9.44 4,878 12,104 12,756 6,787 142,800 120,000 0.055 0.815 1 0.107 318 95 You must exactly print your results for each part as it appears below for all the 6 planets, displaying floating point values to 2 decimal places. 1 2 Typical (sample) output for planet 1 (Mercury) in each part: 3 4 Diameter (Earth=1) Diameter (km) Mass (Earth=1) Relative surface gravity at equator Your weight on the planets (N) Escape Velocity (V.co in 0.38 0.9 1 0.38 2.64 0.93 Gravitational force between Mercury and Sun = 4.47e+22 N 5 (0) (ii) Percentage difference for Mercury = 45.06 % Weight on Mercury = 183.75 N Escape velocity from Mercury = 3.49 km/s 6 km/s) (iv)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started