Answer on Statistics and Probability Question for hills
Consider the probability experiment of a sequence of independent trials (number of trials n=11), each trial is the rolling of a pair of 6-sided dice. suppose a random event A is the sum of the roll is an odd number and a random variable represents the number of successes that occur in the n trials. Find the probability of the success for a single trial, find the probability mass function Pn(m), m=1,n, find the mathematical expectation and variance of the random variable
Coded-to-spec, efficient, simple and accurate.
Nice use of the named constant const double NumDays::perday = 8.0; It's a C++ naming convention to make named constants all CAPS as a signal to the reader it is non-changing, when they see it used in the code. So perday would be PERDAY.
Nice job. Clean, efficient code that compiles and runs great. You created the different classes which interacted so well