Write a program to enter your first name using an array of size 10. If the name entered is more than 10 characters, then display the message :”out of array size declared” using the exception handling. Write a exception class for exception handling.
Write a program to calculate the average mark of n students using an array. Prompt the user
for the marks. If the mark is invalid, display the error message using exception handling and
prompt the user to enter again. Write a exception class for exception handling.