Question: ClassroomOrganizer.java ClassroomOrganizer will simulate a terminal prompt where the user can input commands to edit and print the locations of students. Before describing the commands,

ClassroomOrganizer.java
ClassroomOrganizer will simulate a terminal prompt where the user can input commands to
edit and print the locations of students. Before describing the commands, we will explore the
format of the classroom in the output. Heres an example of the output formatting for a
classroom with 2 rows and 4 columns, with some seats assigned:
##########################
# ABC # # DE # FGHI #
##########################
# J # # KLMNO # #
##########################
You can observe that the output formatting has the following features:
At the top and bottom, as well as between each classroom row, theres a row of #.
On the left and right, as well as between each classroom column, theres a column for #.
The length (in number of characters) of each column is determined by the student who
has the longest name. It should fit that name, as well as one space to the left and one to
the right. Columns always have a length of at least 3, even if no student is seated
anywhere in that column.
Names are always centered. If its impossible to center it exactly (like DE), one more
space will be added to the right of the name in the output.

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!