#include #include using namespace std; int main() { float pounds {0}; cout << "Please type your weight on earth in pounds. "; cin >> pounds; if (!cin) { cerr << "Sorry, there wasn't a number.\n"; return EXIT_FAILURE; } if (pounds < 1) { cerr << "Sorry, anything less than 1 lb wouldn't be much of a surprise. Why not try your weight?\n"; return EXIT_FAILURE; } const double moonweight {pounds * 1.622 / 9.81}; cout << "That weighs about " << moonweight << " lbs on the moon.\n" << "Isn't that neat?\n"; return EXIT_SUCCESS; }