A22.0002

ASSIGNMENT 4

Due: Tuesday, June 8th


Write a program that deals random 50 cards, printing the rank of the card. For this you will choose a random number from 1 - 13. Numbers from 2 through 10 can be printed just as they are. However, the number 1 should print "ace", the number 11 should print "Jack", the number 12 should print "Queen" and the number 13 should print "King".

At the end of the program, you should print out the number of face cards (Jack, Queen or King) that you dealt.

 

A possible output might look like:

You dealt:
Card #1: A 2 card
Card #2: A Queen
Card #3: A 10 Card
Card #4: A Queen
Card #5: A 5 Card
.
.
.
Card #50: A 7 Card
There were 12 Face Cards dealt!