Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have to write a software for Mason Registrar office that will keep track of classrooms in different buildings in Fairfax campus. Assume that
You have to write a software for Mason Registrar office that will keep track of classrooms in different buildings in Fairfax campus. Assume that Engineering building has 20 classrooms. Each classroom has a classroom number and a maximum capacity of students. 1. Declare and initialize an array classroom Number that will store all the classroom numbers in Engineering building. Each Classroom number should be a String. An example of a classroom number is D003. (5 points) 2. Declare and initialize an array classroom Capacity that will store the maximum capacity of each classroom. (5 points) 3. Write a method get Classroom Number() that will populate the classroomNumber array from user input. Add parameter to the method if needed. (10 points) 4. Write a method get Classroom Capacity that will prompt the user for the capacity of each classroom. Add parameter to the method if needed. (10 points) 5. Write a method, FindMaxCapacity() that will find the classroom number that has the largest capacity in the engineering building. (10 points) 6. Print the list of all classrooms and their capacity in the Engineering building. (10 points)
Step by Step Solution
★★★★★
3.39 Rating (149 Votes )
There are 3 Steps involved in it
Step: 1
Answer 1 public class Main public static void mainString args String classroomNumber D003 D004 D005 D006 D007 Add more classroom numbers as needed for String classroom classroomNumber Systemoutprintln...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started