What is the program solution in C++'s "Visual Studio Code" system that will help me get the results required in this programming assignment?
*Note that the commands have to be ./lightsout and ./lightsout 0.
They cannot be just lightsout and 0 by themselves.
Lights Out Game Create an interactive program that uses the Lightsout class to play a game. First, if no command line parameter is given generate a random number. If you #include
, then the following code will generate a large random number. random_device roll; int number = roll(); Use the provided parameter or the randomly generated number to initialize the game board. Recall numbers are really just a series of bits. The lowest bit (the one's column) determines the top-left (1,1) light. The next lowest bit represents the light to the right (1,2) and so on, wrapping to the next row, and ending in the bottom-right (5,5) with the 25th bit. The lowest bit of the number determines whether the number is even or odd. If the number is odd, turn the light on if it is even, do not turn the light on. Once you have "used up" that bit you can use the following code to "throw it away" and shift all the other bits "down one" so you can do it again. number >>= 1; Each turn, the state of the game must be displayed using ##'s and spaces in a grid. Use nested loops and get() to do this. Then, prompt the user for input and read input for the row and column numbers as shown below. $ ./lightsout 1 2 3 4 5 1 ## #### 2 #### 3 4 ## ## ## 5 RC: 33 1 2 3 4 5 1 ## 2 ###### 3 ## ## 4 ## ## 5 RC: If (0,0) is entered, exit the program. Otherwise, use toggle() to update the state of the game. Repeat. If all the lights are "out", instead of printing an empty grid, display the message "Congratulations!" and end the program. For example: $ ./lightsout @ Congratulations! Your source file (.cpp) should #include "lightsout.h". Lights Out Game Create an interactive program that uses the Lightsout class to play a game. First, if no command line parameter is given generate a random number. If you #include , then the following code will generate a large random number. random_device roll; int number = roll(); Use the provided parameter or the randomly generated number to initialize the game board. Recall numbers are really just a series of bits. The lowest bit (the one's column) determines the top-left (1,1) light. The next lowest bit represents the light to the right (1,2) and so on, wrapping to the next row, and ending in the bottom-right (5,5) with the 25th bit. The lowest bit of the number determines whether the number is even or odd. If the number is odd, turn the light on if it is even, do not turn the light on. Once you have "used up" that bit you can use the following code to "throw it away" and shift all the other bits "down one" so you can do it again. number >>= 1; Each turn, the state of the game must be displayed using ##'s and spaces in a grid. Use nested loops and get() to do this. Then, prompt the user for input and read input for the row and column numbers as shown below. $ ./lightsout 1 2 3 4 5 1 ## #### 2 #### 3 4 ## ## ## 5 RC: 33 1 2 3 4 5 1 ## 2 ###### 3 ## ## 4 ## ## 5 RC: If (0,0) is entered, exit the program. Otherwise, use toggle() to update the state of the game. Repeat. If all the lights are "out", instead of printing an empty grid, display the message "Congratulations!" and end the program. For example: $ ./lightsout @ Congratulations! Your source file (.cpp) should #include "lightsout.h