Lab 6 -- Exception Handling
-
Write a function that accepts an integer parameter and returns its integer square root.
-
The function should throw an exception if it is passed an integer that is not a perfect square.
-
Demonstrate the function with a suitable driver program.
-
Make sure that your main function can handle the exception! We don't want run-time errors to terminate the program.