Array comparison and set operations
📖 Scenario: You are managing two lists of attendees for two different events. You want to find out who attended both events, who attended only one, and who attended either event.
🎯 Goal: Build a Ruby program that compares two arrays of names using set operations to find common attendees, unique attendees, and all attendees combined.
📋 What You'll Learn
Create two arrays with exact names as given
Create a variable to hold the common attendees
Create a variable to hold attendees unique to the first event
Create a variable to hold all attendees from both events
Print the results exactly as specified
💡 Why This Matters
🌍 Real World
Comparing lists of participants, customers, or items is common in event planning, marketing, and inventory management.
💼 Career
Understanding array comparison and set operations helps in data analysis, filtering, and reporting tasks in many programming jobs.
Progress0 / 4 steps