#include #include using namespace std; int main() { string planet; float weight; cout << "How much do you weigh? "; cin >> weight; cout << "Choose a planet to see how much you would weigh there: " << endl; cout << "Mercury, Venus, Earth, Moon, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto" << endl; cin >> planet; if(planet=="Mercury") { cout << "Your weight on Mercury is " << weight*0.4155 << endl; } else if(planet=="Venus") { cout << "Your weight on Venus is " << weight*0.8975 << endl; } else if(planet=="Earth") { cout << "Your weight on Earth is " << weight << endl; } else if(planet=="Moon") { cout << "Your weight on the Moon is " << weight*0.166 << endl; } else if(planet=="Mars") { cout << "Your weight on Mars is " << weight*0.3507 << endl; } else if(planet=="Jupiter") { cout << "Your weight on Jupiter is " << weight*2.5374 << endl; } else if(planet=="Saturn") { cout << "Your weight on Saturn is " << weight*1.0677 << endl; } else if(planet=="Uranus") { cout << "Your weight on Uranus is " << weight*0.8947 << endl; } else if(planet=="Neptune") { cout << "Your weight on Neptune is " << weight*1.1794 << endl; } else if(planet=="Pluto") { cout << "Your weight on Pluto is " << weight*0.0899 << endl; } else { cout << "You entered an invalid planet. Please try again." << endl; } }