Question: Implement Lab PartyGuests based on the activity diagram provided. Here is a summer of the functionality the lab will provide: It reads in a certain
Implement Lab PartyGuests based on the activity diagram provided. Here is a summer of the functionality the lab will provide: It reads in a certain number of guests from the user, prints the party list, selects a random guests who cannot come, and prints the updated party list. Pay attention to the comments. They give you additional information regarding specific actions.

null Guests is set to 4 input.. to read in user input declare and initialize from keyboard ocal variable rand to generate randeom number guestList Arraylist of type String nform user that we' read in numberOf Guests guests declare control varaible and initialize it increment control variable guest list guest name numberofGuests guests have been entered] print the guest list select random guest remove random guest T- Inform user that this guest won't come remove guest form the guest list print the guest list Sample output: Please enter 4 guests: guesti: Dan guest 2: Ben guest 3: Ron guest4: Tim Guest list: Dan Ben, Ron, Tim Dan can't come Updated guest list: [Ben Ron Tim]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
