C++ programming Arrays and Enumerated Data types
Concentration Term Assignment GAME1103
Concentration Level 3 Marks
Functions • Enumerated Types (4)
o Enumerated types are used for the main menu (2)
• Array Utilization (10) o All card, and display variables have been replaced with arrays (6) o Appropriate arrays are being passed as parameters to necessary functions (4)
• Card Selection (4)
o Players choose card location between 1 and 10 and range is verified (2) o Card is verified to be playable (not used all ready) (2)
• Randomized Cards (6)
o Prior to each game, the cards are randomly selected and placed in the cards array
• Cheat Mode (4) o If the player enters 99 as a board location all cards in the game are revealed
• Player Name (4)
o When the play game menu option is selected the player is prompted for their name and all game prompts display the players name (see sample during game play)
• Score Functionality (20) o Player data is read from a file into parallel arrays which hold the player names and scores
when the game starts (5) o When the player completes a game they are added to the list of players with their score if
their name doesn’t exist already. (4) o If their name is already in the list their score is updated. (2) o Players and their scores are displayed when the appropriate menu option is selected (4) o Players scores are saved to a file when the appropriate menu option is selected (5)
• Menu Options (3) o Show Instructions, Play Game, Display Scores, Save Scores and Exit are available menu
options (1) o Menu selections are validated (2)
/55 Overall Program Structure
• Deductions will take place for any of the following which do not follow standards o Structure: no global variables, general algorithm design, application compiles and runs correctly
• Style: prompts, output, indentation, naming conventions, documentation
/10 Total /55
- Concentration Level 3
- Total