Create HW5MixNormUnif.cpp

Suppose x1, . . . , xn are i.i.d. samples from a mixture of a Normal distribution and a uniform distribution.
That is, xi ∼ N(µ, σ2
) with probability 0 < p < 1 and xi ∼ U(a, b) with probability
1 − p. Suppose that we know µ is an integer and σ = 1, but we know nothing about p, a and
b. Your task is to write a C++ program mixNormUnif.cpp which, given x1, . . . , xn, estimates and
prints µ. Since µ should always be an integer, do NOT print in floating point format such as 1.0.
Your program should get its input from cin. The input is a sequence of n real numbers x1, . . . , xn.
Example runs of valid input arguments are (the first line is the command line, the second line is
the input and the third line is the expected output of your program).