Your will simulate 10lottery drawings store those data to a


Write a 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 lottery drawings 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 to calculate:
1) What percentage 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 contains three even numbers.

In this exercise, no global variablesare allowed. NO CREDIT if you did not write the required function to solve the problem.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Your will simulate 10lottery drawings store those data to a
Reference No:- TGS0591147

Expected delivery within 24 Hours