#include #include using namespace std; int main () { double miles {0.0}; cout << "How many miles?\n"; cin >> miles; if (!cin) { cerr << "Sorry, that wasn't a number.\n"; return EXIT_FAILURE; } if (miles <= 0 || miles >= 100) { cerr << "Sorry, that wasn't a legitimate number.\n"; return EXIT_FAILURE; } double dollars {3.00 + 3.50 * miles}; cout << "The fare will be " << dollars << " dollars\n"; return EXIT_SUCCESS; }