miscellaneous topics ii given two dates entered as strings in the form mm/dd/yyyy where the years are between and determine how many days apart they are here is bit of information that may be usefulleap years between and occur exactly every four yearsstarting at february has days during leap year novemberapriljuneand september each have days the other months have days monte carlo simulations can be used to estimate all sorts of thingsincluding probabilities of coin flip and dice events as an exampleto estimate the probability of rolling pair of sixes with two dicewe could use random integers to simulate the dice and run the simulation thousands of timescounting what percentage of the time pair of sixes comes up (aestimate the probability of rolling yahtzee in single roll of five dice that is estimate the probability that when rolling five dice they all come out to be the same number (bestimate the probability of rolling large straight in single roll of five dice large straight is roll where the dice come out - - or - - in any order (cestimate the average longest run of heads or tails when flipping coin times (destimate the average number of coin flips it takes before five heads in row come up (eestimate the average number of coin flips it takes before the string comes upwhere is string of heads and tailslike hhtth