Create a program that provides the user with four different options:
1. divide 36 by some number that the user enters.
2.
choose an item from an array by providing the index value.
3.
ask the user to enter a number that you will do some calculation with
4.
quit the program.
Setup the above list of options and run the program. Enter normal values to be sure the program works properly. Then enter values that crash the program. Use the provided error messages to help you create your try and catch blocks. When your instructor runs the program it should NOT crash when bad values are entered.
Provide error checking for each option so if a user enters 0 for the divide by problem the program will not crash and instead an appropriate message will be displayed. For examples of the types of errors you should check for refer to the Common exceptions on this page. Be sure that each error message is unique to the specific problem encountered.
You may want to start with the CatchingErrors program you created from the SortArray code.
Demonstrate your program for teacher check.