- Use Java and C++ to write the exception handling for thefollowing program. Note: focus on exception handling, other detailsof code may be sketches. Write code on the back of page1.
- A program inputs a list of integer values in the range of -100to 100 from the keyboard. This program must use exception handlingto ensure that the input values are in range and are legalintegers. In case the input value is not in range or not legalinteger, this input value will be ignored, an error message will beprinted, and program continues. In the case of the inputvalue is not of integer type, an error message must be printed andthe program terminated.
Expert Answer
Answer to Use Java and C++ to write the exception handling for the following program. Note: focus on exception handling, other de…