C++ programming essentials functions

profileking0714
Assignment7-MarkingScheme.pdf

GAME1103 – Marking Scheme Assignment #7

Concentration Level 3 Marks Functions

• DisplayIntro (2) o void function no parameters

• InitializeGameData (6)

o void function 6 parameters for the card variables (3) o randomly selects 1 of at least 3 different game boards (3)

• InitializeGameDisplay (3)

o void function 12 parameters for the display control variables

• DisplayInstructions (2) o void function no parameters

• GameMenu (6)

o value returning no parameters (2) o Displays the menu (1) o Validates the user entry and returns the selection (3)

• DisplayBoard (2)

o void function 6 parameters

• PlayGame (3) o void function no parameters and contains the main game loop

• GetValidBoardPosition (8)

o int returning function 6 parameters (3) o Validates the position number entered (1 to 6) (2) o Does not allow the user to select a used square (3)

• MatchMessage (2)

o void function no parameters

• NoMatchMessage (2) o void function no parameters

• DisplayCredits (2)

o void function no parameters

• Main Function (2) o Appears similar to the sample provided and contains minimal program logic

/40 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 o Style: prompts, output, indentation, naming conventions, documentation

/-5 Total /40

  • Concentration Level 3
    • Total