Question: Implement the program using functions that do not return any value (void) and whose parameters are pointers to arrays. 14. Lottery Application Write a program

Implement the program using functions that do not return any value (void) and whose parameters are pointers to arrays.
14. Lottery Application Write a program that simulates a lottery. The program should have an array of five integers named lottery and should generate a random number in the range of 0 through 9 for each element in the array. The user should enter five digits, which should ing elements in the two arrays and keep a count of the digits that match. For example, the following shows the lottery array and the user array with sample numbers stored in each. There are two matching digits (elements 2 and 4). user array: The program should display the random numbers stored in the lottery array and the of matching digits. If all of the digits match, display a message proclaiming the user as a grand prize winner
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
