Homework Questions? Ask a Tutor for Answers ASAP
Here are the instructions of the certain method. As it might take the whole instructions to understand what is going on I do not know if this will be able to get answered. I just cant figure out how to create the jagged array. populate that on top of the other instructions with the try/catch block. If this is too much I understand. I am just very desperate right now and am in need of help. Again im sorry for the length but i tried to be as detailed as possible.
Below is the instructions to the method:
I am supposed to create a public method named InputSemesters() that will go through each row af an jagged array and then use a try/catch to ask the user how many classes were taken semester1, 2, etc. It will use Parse() to read in the input from the user. It will then call on a createSemesters() method passing in which semester is being created and the input from the user. The catch will be a general catch that uses a System.Exception object to print out an error message that indicates there was a problem and prints the Message propery of the object then indacte that the user needs to try again. This means that the try/catch should be in a loop of its own that will go back and try again to get input from the user. We do not need to worry about the input being positive or abnormally large.