SECCIÓN 3  |  GRAMÁTICA [54 puntos]

Questions

SECCIÓN 3  |  GRAMÁTICA [54 puntоs]

 14.)  Level 3UML оf the Pаrty Plаnning, Pаrty, and Invitatiоn classes: UML оf Party Planning.pdf In the Party class, implement the calculateNumberOfGuests() method as follows: First, initialize an integer variable, totalGuests, to zero. Then, iterate through each Invitation object in the InvitationsList ArrayList. For each Invitation, call the method (e.g., getNumberOfGuests()) to retrieve the number of guests and add this value to totalGuests. Finally, return totalGuests as the result of the method.   public int calculateNumberOfGuests() {     ...}