Writea program to simulate a lottery drawing that uses balls numberedfrom 1 through 10. Assume that three balls are drawn at random (Userandom numbers or allow user to input the number of lotterydrawings to simulate the random number). Your will simulate 10lottery drawings. Store those data to a 3 10 array. The rowsindicate the three balls in a lottery drawing. The columns indicatethe 10 times drawings. In this exercise, You will need tocalculate:
1) Whatpercentage of the time does the result contain three odd numbers inthe simulation? Write a function to finish this task.
2) Printout the original input (10 times drawings) nicely on the screen.Then print out the percentage of time that the result containsthree even numbers.
In this exercise, no global variablesare allowed. NO CREDIT if you did not write the required function to solve the problem.