Question
This is to be done in Java using Sets (HashSet). The task is to find out how many people you typically need to meet before
This is to be done in Java using Sets (HashSet).
The task is to find out how many people you typically need to meet before you meet one person born each day of the year. You are assuming there are 365 days in a year (no leap years). This means a birthday can be represented by a random number from 1 - 365. Using a set, the task is to keep track of the birthdays you have already encountered. Run the whole trial 100 times to take an average.
THE END OUTPUT OF THE NUMBER OF PEOPLE will vary due to it being a random number but it should be in the 2000s (someone in the 2000 people ballpark).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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