Create a class for an elementary school that will allow a teacher to enter each student's seating assignment. Occasionally, the teacher may need to switch the seating assignment of a student. If there is a seat available, the student is moved. If all of the seats are already assigned, the teacher will have two students trade seats.
Minimum Requirements:
Create a class called Student that holds information about one student including the student's name. The class must have methods to set each instance variable and methods to get each instance variable.
Create a class called SeatingChart and create a multidimensional array of Student objects as an instance member. The array of Student objects should be able to handle a class of size 20. You will not get credit for this assignment if you do not use a multidimensional array for the seating chart.
Include an addStudent function that has parameters for a student name, target seat row, and column to add one student to the seating chart array in the multidimensional array position [row, column] provided by the parameters. Position [0,0] represents the seat closest to the teacher's desk. Do not store a seat number in the Student class; the array index will represent each seat for the seating assignments.
Include a swapStudents function that has parameters for a student name, target seat row, and column. This function should find a student's name in the multidimensional array and swap the student from his or her original seat to the target seat in the multidimensional array position [row, column] provided by the parameters. The result will be that those students trade seating assignments.