Slide 1L7: Exceptions Problem Description Error Handling –terminate the program –return a value representing an error –return a legal value and leave the program in…