#include #include using namespace std; // You need a definition of class fish here int main(){ fish w("walleye"); try { double aw = w.average_weight(); cout << "(This should NOT print) Average walleye weight: " << aw << endl; } catch (const runtime_error e) { cout << "Good job, average_weight threw an exception with no recorded fish" << endl; } w.add(9.1); w.add(6.3); w.add(8.3); try { cout << "(This one should print) Average walleye weight: " << w.average_weight() << endl; } catch (const runtime_error e) { cout << "Oh no, average_weight threw an exception with 3 recorded fish!" << endl; } cout << "Walleye Record: " << w << endl; return 0; }