// PL10/exceptiondemo.cpp // illustrates exception usage for user defined exception // Niels Walet. Last edited 03/12/2019 #include #include //for exit const int divide_flag(-1); double divide(double x, double y) { if(x==0) throw divide_flag; return y/x; } int main() { double x{3.},y{4.}; double result; try { result=divide(x,y); std::cout<<"y/x = "<