Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(5 points each) Write the necessary lines of code to call the following methods

ID: 3741729 • Letter: #

Question

(5 points each) Write the necessary lines of code to call the following methods that are part of the School object and store any results based on their signatures. 4. a. Schoolfint schoolID) Note: This is the constructor for the School class. You may use the object you construct here as required for the following questions. b. intl] getGrades0 c. void pingBell0 d. double etAverage(String subject) e. Stringl] getPrintQueue(int maxLength) (5 points) All of the method calls in 4b - e are currently non-static. If the methods were changed to be static, you would need to change one word in each method call Which word would you change, and what would you change it to? 5.

Explanation / Answer

Question 4a)
Answer:
School school = new School(1111);

Question 4b)
Answer:

int grades[] = school.getGrades();

Question 4c)
Answer:

school.ringBell();

Question 4d)
Answer:
double avg = school.getAverage("CSE");

Question 4e)
Answer:
String printQs= school.getPrintQueue(5);

Question 5)
Answer:

once word we have to change that is "school" to "School"
static methods are being by class name and non-static methods are called by object.