You need help with this program. It needs to be in the C++ language and format - something I'm not familiar with. Also, it would be a great help if you could take a picture/snapshot of the program and upload it. Thanks!
The picture might not be clear so here's the text version of the instructions:
Write a program that simulates a Lotto 6/49. The program should have an array of six integers named lottoNumbers, and should generate a unique random number in the range of 1 through 49 for each element in the array.
The program should also have an integer variable named bonus to store the bonus number (again, the bonus number is a unique random number in the range of 1 through 49).
The user should enter the six unique numbers (1 through 49) which should be stored in an integer array named userNumbers. The program is to compare the numbers in the two arrays as well as the bonus number and display the number of matches to the screen as follows:
If the user numbers matches all six random numbers, the program must display the number of matching numbers and a message proclaiming the user as a grand prize winner.
Else, the program must display the number of matching numbers and the bonus number to the screen.
In addition, your program should use a while or do...while statement to check whether the user would like to quit or continue checking more lotto numbers.
Your program must implement and use the following functions (NOTE: IF YOU FAILED TO IMPLEMENT AND USE ANY OF THESE FUNCTIONS OR FAILED TO FOLLOW THE FOLLOWING INSTRUCTION WILL RESULT IN A SUBSTANTIAL DEDUCTION OF YOUR GRADE):
1. void generateLottoNumbers(int lottoNumbers[],int ARRAYSIZE, int &bonus) This function must generate six UNIQUE random numbers in the range of 1 through 49 for each element in the array and a bonus number in the range of 1 through 49 that is different from any of the six numbers in the array.
2. void getUserNumbers(int userNumbers[],int ARRAYSIZE) This function must prompt the user to enter six numbers in the range of 1 through 49 and store then in the array, userNumbers. NOTE: this function must verify the range and the uniqueness of each number before storing them to the array.
3. void printArray(int numbers[],int ARRAYSIZE) This function prints the content of the array, numbers to the screen (separated by a space).
4. int countMatch(int lottoNumbers[],int userNumbers[],int ARRAYSIZE) This function returns the number of matches between the lottoNumbers and userNumbers.
5. bool matchBonus(int userNumbers[],int ARRAYSIZE, int bonus) This function returns true if one of the numbers in the userNumbers array matches the bonus number and false otherwise.
6. bool isWinner(int lottoNumbers[],int userNumbers[],int ARRAYSIZE) This function returns true if all userNumbers match the lottoNumbers and false otherwise. NOTE: you must call the countMatch function to determine the number of matches between userNumbers and lottoNumbers.