Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a program that simulates a lottery. The program should have an array of 5

ID: 3528517 • Letter: W

Question

write a program that simulates a lottery. The program should have an array of 5 integers named WinningDigits, with a randomly generated number in the range of 0 through 9 for each element in the array. the program should ask the user to enter 5 digits and should store them in a second integer array named "player". the program must compare the corresponding elements in the two arrays and count how many digits match. once user has entered a set of numbers in, the program should display the winning digits and the players digits and tell how many digits matched. matched is when exactly two numbers manage to be over each other and match perfectly like 4 over 4 and 8 over 8, 9 over 9 etc.. the program will need a validation code that prevents numbers below 0 and greater than 9. please error check any help you give thanks!!!!

Explanation / Answer

None of the above seem to follow your prompt closely placeholder while I finish debugging. Please rate afterward. If you have any questions/changes, please comment me before rating.