#include #include using namespace std; int main() { double chirps {0.0}; cout << "How many chirps in 15 seconds did you hear?\n"; cin >>chirps; if (!cin) { cerr << "Sorry, that wasn't a valid number.\n"; return EXIT_FAILURE; //chirps die here. } if (chirps <= 0 || chirps >= 100) { cerr << "sorry, that wasn't a legitimate number.\n"; return EXIT_FAILURE; } //Formula for taxi ride in nyc. double {chirps + 40}; cout << "The temperature is " << chirps << "degrees.\n"; return EXIT_SUCCESS; }