NAME

Circle your lab section

Section 8, Thurs 6:30PM.

Section 3, Thurs 8:30AM.

Section 9, Fri 2:00PM.

EMAIL ID

Section 4, Thurs10:30AM

Section 10, Thurs 8:30PM.

Section 5, Thurs 12:30PM.

Section 11, Fri at Noon.

STUDENT ID

Section 6, Thurs 2:30PM.

Section 12, Fri 4:00PM.

Section 7, Thurs 4:30PM.

Section 13, Fri 6:00PM.

GRADING CRITERIA

POINTS

SCORE

Initial program comments identify, student ID, email, lab section number

10

 

Program prints a suitable title or legend

5

 

Program automatically draws player’s first two cards and displays their individual values and their total value

10

 

Program correctly detects if player "busts"

10

 

Program draws dealer's first two cards and displays their individual values and their total value

10

 

Program correctly detects if dealer "busts"

10

 

If dealer's initial two cards total <17, dealer continues to draw until the total is >= 17

20

 

If dealer and player are tied, player draws one card and its value is printed, then dealer draws one card and its value is printed

20

 

If dealer's and player's cards are equal, they draw again and their card values are printed

10

 

Program correctly determines winner in all situations

20

 

Program prompts user to play again

10

 

Program accepts "y" and "Y" to play again and terminates on any other characters

10

 

TOTAL

145