Question: L 7 - L 9 Homework: Classroom Organizer Problem Description Hello! Please make sure to read all parts of this document carefully. You will be
LL Homework: Classroom Organizer
Problem Description
Hello! Please make sure to read all parts of this document carefully.
You will be writing a Classroom Organizer to help with seating students. In this assignment, you'll be using your knowledge of iteration and arrays to create a program that allows tracking and editing the location of students in a classroom. To do this, you will create and turn in a ClassroomOrganizer.java file that runs code in a main method. You are allowed to create helper methods and we recommend you do but only the main is required.
Solution Description
You will write a single file, ClassroomOrganizer.java. You must use all the kinds of loops explored in L L at least once.
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. Here's an example of the output formatting for a classroom with rows and columns, with some seats assigned:
#
# ABC
# OF
##
#FGHI#
#
# KLMNO
#
#
#
###
You can observe that the output formatting has the following features:
At the top and bottom, as well as between each classroom row, there's a row of #
On the left and right, as well as between each classroom column, there's 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 even if no student is seated anywhere in that column.
Names are always centered. If it's 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
