#include #include #include #include using namespace std; int main() { int weight {10}; cout << "Ever wonder what your weight in gold is worth? Enter your weight in pounds.\n"; cin >> weight; if (weight < 20) { cerr << "Sorry, this value is too low.\n"; return EXIT_FAILURE; } if (weight > 1000) { cerr << "Please enter your human weight, on earth, in pounds.\n"; return EXIT_FAILURE; } const double value{weight * 14.58 * 3645}; cout << fixed << setprecision(2); cout << "Your weight in gold is worth around $" << value << ", time to start digging!\n"; return EXIT_SUCCESS; }