The game of Concentration

Create a program which will allow a player to play the game of Concentration. This assignment
will utilize all the programming techniques we have learned throughout the term in one
organized, nicely styled program. Items such as data types, variables, constants, conditional
control structures, repetition control structures, functions, console I/O, file I/O, enumerated types,
and arrays will all play a role in this program.
The programming requirements for this assignment are listed below. In order to help plan the
completion of your assignment, a “Suggested Approach” is included below the requirements.
Although time will be given in class to complete the assignment, you should work on it at regular
intervals over time.
Programming Requirements:
• Utilize a enumerated data type for the main menu of the game
• Increase the board size to 10 cards, you must utilize an array for the game board and
display variables of the game
o Replace the card, display and masterDisplay variables with arrays
o All code associated with the variable method implementation requires modification
as well. As an example, the code where the guesses are tracked with card1 – card6
variables need to be modified to the appropriate array and indexed accordingly
o Cards must be displayed in a 2 x 5 grid layout as shown in the sample

This question has been answered.

Get Answer