#include #include using namespace std; int main() { float pounds {0}; cout << "In pounds, give a weight of an object.\n"; 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 / 9.81) * 1.622}; cout << "That weighs about " << moonweight << " lbs on the moon.\n" "Isn't that neat?\n"; return EXIT_SUCCESS; }