// hw8_1.cpp // this main driver uses the Cooker class to generate a countdown timer #include #include using namespace std; #include "cooker.h" int main() { Cooker x; cin >> x; // set the initial time while (true) { system("clear"); // clear the screen cout << x; // display the time if (x.value() == 0) break; // exit when the display is 0 x.wait1sec(); // wait for one second --x; // decrement } cout << "\a" << endl; // beep return 0; }