Computers and Technology

4. sharedbirthdays: the birthday problem is a question where most people's intuition is proved incorrect by mathematics. the problem is: given a group of n people, how large must n be so that there is a 50% chance that at least 2 of the n people have the same birthday? write a method with two parameters, the number of people in a group and the number of days in the year. the method will generate random birthdays for the number of people and then determine how many pairs of people have the same birthday. you don't have to generate actual days of the year for the birthdays. you can simply use ints. here are two ways to generate random ints in java. one uses an object of type random and the other uses the random method from the math class.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:00, suewignall
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
image
Computers and Technology, 23.06.2019 04:31, tbt81
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
image
Computers and Technology, 23.06.2019 13:50, mrfishyyyy
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
image
Computers and Technology, 24.06.2019 09:30, bhadd4385
What is the definition of digital literacy?
Answers: 1
Do you know the correct answer?
4. sharedbirthdays: the birthday problem is a question where most people's intuition is proved inco...

Questions in other subjects: