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...
Type: Posts; User: ksahakian21
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...
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...
yes, as long as the day is the same, the month doesn't matter
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...