Array Assignment:

I have a roster of the students that are enrolled in my course by both student name and id. The name is in the format last/first middle. I want to set up the student ids (look at the Mod11.html handout and use an id that is compatible with that – try to get one or two that work and one or two that do not)and the student names in an array or arrays such that I can validate that the student is in my class by either id or name.

So the student will click a radio button to tell whether they are entering a name or an id. I then want to take that id or name and check the array to validate that the student is in my class and display a message to that effect and either the id or the name (the thing they did not provide). If the student is not in the array(s) I want to return that message.

So if the student gives me a name of Souza/Ann M and she is in my class I will return the fact that she is my student and I will return her id. If the student enters an id of 12345 I will check and return a message and if the student is in the class I will return the name. If the student is not in the class the message will say something like not a registered student for this course.

Now for a tricky twist. If they enter an id that is not valid for one of my students I want to check the id to see if it is even a valid student id. To do this I am going to use the Mod11 check digit. I then need to give feedback as to whether or not it is a valid student.