• + 0 comments
    double mean = 2.4;
    double stdDev = 2.0;
    int nStudents = 100;
    int nTickets = 250;
    
    double meanX = mean * nStudents;
    double stdDevX = stdDev * Math.sqrt(nStudents);
    
    double p = probability(meanX, stdDevX, nTickets);
    

    The probability is calculated in the same way as in the "Day 5: Normal Distribution I" problem.