Search:

Type: Posts; User: ksahakian21

Search: Search took 0.10 seconds.

  1. Re: Program to check how many people are born on the same day of the month

    I did eventual figure this out after getting my head wrapped around it.


    import javax.swing.JOptionPane;

    public class BDayMTester{
    public static void main(String[] args){
    final int...
  2. Re: Program to check how many people are born on the same day of the month

    Sorry to keep posting walls of code, but I think I've almost found the solution. I don't believe I'm getting a correct average from the 10,000 trials though. Here is my new code:


    import...
  3. Re: Program to check how many people are born on the same day of the month

    yes, as long as the day is the same, the month doesn't matter
  4. Program to check how many people are born on the same day of the month

    Assuming there are exactly 30 days in a month, I need to write a program that considers if there are K people in a room, what is the likelihood that at least M of them were born on the same day of...
Results 1 to 4 of 5