Question: Need help generating a random letter that is either D, A ,B ,O and the corresponding number. I can figure out the random number part
Operation The program should first display this board with the random numbers in each square as shown above. It should then continually prompt the user to "Press 'Enter' to generate a Square (or 'q' to quit).." Each time the user presses [Enter] the program should produce a randomly generated combination of a letter (D', A', 'B', or 'O') and a number valid to each column ('1' . 20' for D', 21'-40' for A' etc.) and display the result along with the counter that is incremented every time a letter-number combination has been generated for the game. For example: 1: D-7 2: 0-78 3: A-17 If the number generated is present on the board, then the program should display an X in that chosen cell and redraw the board
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
