Question: write a code in java. This method simulates students taking their seats in the Kindergarten classroom. Assume that the students are currently in studentsinLine and

write a code in java.

write a code in java. This method simulates students taking their seats

This method simulates students taking their seats in the Kindergarten classroom. Assume that the students are currently in studentsinLine and that there enough available seats to seat all students in the line. - This method will populate the 2D array studentsSitting. - Students will be seated starting at the first row, first seat (studentsSitting[0][0] if a seat is present at that location). Once the first row is filled, continues into the next row. - It uses the seatingLocations array to determine if a seat exists at a location. - A student can sit at seat studentsSitting[i][i] only if seatingLocations[i][i] is true (seat exists). - Then seat the first student in studentsinLine and moves on to the second, third and so on. NOTES - A student is only in one place (musical chairs, seating chairs, or in line) at a time. At the end of this method studentsinLine is empty. - This method depends on enterClassroom and setupSeats. Test those individually on the driver prior to testing this method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!