(Solved):Write a program in C++ to simulate a lottery drawing which uses balls that are numbered from 1 to 10. Assume that three balls are drawn at random and the number are unique for each draw. (all 3 nu… View Answer…

 

Question

Write a program in C++ to simulate a lottery drawing which uses balls that are numbered from 1 to 10.

Assume that three balls are drawn at random and the number are unique for each draw. (all 3 numbers must be different).

Allow a user to enter the number of lottery drawings to simulate. The program must validate the input.

For example, number of drawing can’t be negative. The program must not quit

Scroll to top