Question
Note: It should be the same in figure2 (Yellow Page).
roblem find the weight of an object/imatter on different planets it is important first to explore the To difference between mass and weight. Mass is a measurement o is the force generated by the gravitational attraction of one o change when we change planets. f the amount it contains and weight This mass does not However, if we went from Earth to Mars, weight would change less gravity than Earth. Gravity is a force pulling matter together. Gravity of a bject on another use Mars has planet can be calculated by using following formula G M r2 Where . G is a gravitational constant whose value is 6.673x10 · M is mass of the planet in Kilograms . r is radius of the planet in meters. Diameter is equal to 2 times of radius. Weight of any object/ matter can be computed as acceleration due to gravity force (F) times mass of an object, that can be represented as w F*m Where m is the mass of an object/matter Following table shows the mass and diameter of the planets. Diameter Planets Mass (Kgs) Mercury | 3.3011 Venus 4.867x104 1 Earth 5.98x0 4.879x 10 1.2104x10 1.276x10 Mars 6417x0 6794x10 Jupiter 1.8990 1429x10 Saturn 5.6850 1205x10 1.429x10 1.205x10 5.112x10 4.953x10 Uranus 8.682x10 55 tune 1.024x1026 Pluto 1.471x10 2.37x1
media%2Fd8b%2Fd8b03a04-d973-41e3-834d-7c
0 0
Add a comment Improve this question Transcribed image text
Answer #1

// C++ program to calculate the mass of an object in a planet

#include <iostream>

#include <string>

#include <iomanip>

using namespace std;

int main() {

               string name;

               double mPlanet,dPlanet,rPlanet,mObject;

               cout<<"\t\tComputing Weights of objects on different Planets"<<endl;

               cout<<"********************************************************************************"<<endl<<endl;

               // inputs

               cout<<" Please enter the name of planet : ";

               cin>>name;

               cout<<" Enter the mass of Planet(M) : ";

               cin>>mPlanet;

               cout<<" Enter the diameter of Planet : ";

               cin>>dPlanet;

               cout<<" Enter the mass of an object(m) : ";

               cin>>mObject;

               const double g = 6.673e-11; // gravitational constant

               rPlanet = dPlanet/2; // calculate the radius of planet

               // calculate gravity of planet

               double fg = g*mPlanet/(rPlanet*rPlanet);

               // calculate weight of object in planet

               double w = fg*mObject;

               // output

               cout<<endl<<" "<<left<<setw(20)<<"Planet"<<left<<setw(20)<<"Gravity m/s"<<left<<"Weight of Object Kgs"<<endl;

               cout<<" "<<left<<setw(20)<<"******"<<left<<setw(20)<<"*******"<<left<<"*********************"<<endl;

               cout<<" "<<left<<setw(20)<<name<<left<<setw(20)<<fixed<<setprecision(1)<<fg<<left<<setprecision(3)<<w<<endl;

               return 0;

}

//end of program

Output:

Computing Weights of objects on different Planets Please enter the name of planet Earth Enter the mass of Planet(M)5.98e24 Enter the diameter of Planet 1.276e7 Enter the mass of an object(m) 15 Planet Gravity m/s Weight of Object Kgs k* Earth 9.8 147.052

Add a comment
Know the answer?
Add Answer to:
Note: It should be the same in figure2 (Yellow Page). roblem find the weight of an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please explain step by step! Useful Planetary Data Mean Radius (m) 243 × 106 6.06 ×...

    Please explain step by step! Useful Planetary Data Mean Radius (m) 243 × 106 6.06 × 10° 6.38 × 10° 3.37 × 106 6.99×107 5.85 × 10' 2.33 × 107 221 × 107 1.14 × 10° 1.74 × 10° 696 × 108 Period (s) 7.60 × 106 1.94 × 107 3.156 × 10, 5.94 × 10' 3.74 × 108 9.35 × 108 2.64 × 109 5.22 × 109 782 × 109 Mean Distance from Sun (m) 579 × 100 1.08...

  • I want to have a code that can pick whichever two planets in the solar system and find the distance of them no matter where in their orbit they are, but I keep getting errors. Can someone please help...

    I want to have a code that can pick whichever two planets in the solar system and find the distance of them no matter where in their orbit they are, but I keep getting errors. Can someone please help me fix it? f rom scipy import exp, pi, absolute, linspace import matplotlib. Ryplot as plt planet-I input ('Which planet do you want to pick for planet 1?") planet_2 input ('which planet do you want to pick for planet 27') distance...

  • Page 3 of 6 10. Which of the following is correct? a) The rotation axes of...

    Page 3 of 6 10. Which of the following is correct? a) The rotation axes of planets are always perpendicular to their orbital plane (the ecliptic). b) No planet's orbital inclination is more than 20 degrees from the ecliptic. c) Planets orbits are circular. d) Planets always rotate and revolve in the same direction. 11. Which of the following is not a real difference between asteroids and comets? a) Asteroids are made mostly of rock and comets are made mostly...

  • VISUAL STUDIO - WINDOWS FORM APP (C#) - PLEASE MAKE SURE TO SHOW ALL CODE &...

    VISUAL STUDIO - WINDOWS FORM APP (C#) - PLEASE MAKE SURE TO SHOW ALL CODE & ANSWER/FOLLOW ALL THE QUESTIONS IN THE ASSIGNMENT! Planet Info Help When planning this project, review the concept of accessing object properties on another form. Form2.IblMessage.Text = "1122.25" or you can put a string or object instead of numbers You can then create one form for the Planets information and set all the properties before you display the Planet Form For the pictures of the...

  • l T-Mobile 9:15 AM a webassign.net Astrology, that unlikely and vague pseudoscience, makes much of the position of the planets at the moment of one's birth. The only known force a planet exer...

    l T-Mobile 9:15 AM a webassign.net Astrology, that unlikely and vague pseudoscience, makes much of the position of the planets at the moment of one's birth. The only known force a planet exerts on Earth is gravitational. Calculate the magnitude of the gravitational force (in N) exerted on a 3.00 kg baby by a 130 kg father 0.250 m away at birth (he is assisting, so he is close to the child.) ) Calculate the magnitude of the force on...

  • Q4. Because of your physics skills you have been selected to scout locations for the first movie ...

    need answer ASAP. Do not know how to caculate answers. Q4. Because of your physics skills you have been selected to scout locations for the first movie to be shot or another planet. However while there an alien sneaks up behind you and hits you on the head. When you wake up you cannot remember what planet you are on, but you do have a table of gravitational acceleration on the different planets and a ball you can throw. Use...

  • An astronaut has a pendulum made of 1.00 m long string and attached mass, which they...

    An astronaut has a pendulum made of 1.00 m long string and attached mass, which they let oscillate on Earth. They take their pendulum to an unknown planet with radius 71.5 x 10^3 km where the period of oscillation is 1.59 times shorter. a) What is the frequency and period of oscillation of the pendulum on Earth? b) What is the frequency and period of oscillation of the pendulum on unknown planet? c) What is the gravitational acceleration of the...

  • Mm 9x Weight of an object on the X-planet surface Weight W = F = mgx...

    Mm 9x Weight of an object on the X-planet surface Weight W = F = mgx G = 6.67 x 10-11 Gravitational acceleration on a X-planet EX-8 In a 2014 epic science fiction movie, Interstellar, a small group of astronauts travel through a wormhole near Saturn in search of a new home for humanity. In the film the astronauts are even able to close a black hole (mass is very large) called Gargantua. Now assume these astronauts are landed at...

  • ars nly shrank to a tenth mass What would o the Sun? d sphere to a and mass How where G-untversal gravitational con...

    ars nly shrank to a tenth mass What would o the Sun? d sphere to a and mass How where G-untversal gravitational constant: G-6.67x101 N k m-3 kg- the mass of the baby M-either the mass of Mars or the obstetrician, and r-the separation between the baby and either Mars or the doctor at the instant of birth th bored from one of the Earth, and seball down this e surface What Questions 1. Calculate Fr. the force on the...

  • If the mass of the Earth increased without any change in its radius your weight would...

    If the mass of the Earth increased without any change in its radius your weight would increase decrease stay the same The value of acceleration due to gravity. O depends on the radius of Earth O depends on the mass of the Earth B. O depends on the universal gravitational constant, G o is different on different planets all of the above Which is true: the gravitational potential energy of an object in Earth's orbit depends on the radius of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT