Question with simple card program

I am having some issues with this assignment. It says to write a program that simulates picking a card from a deck of 52 cards. For each card your program shoul display the rank and suit.
So it should say
The card you picked is Jack of Hearts

I have the random number down so it it is between 0-51, so 52 cards total.
I was going to do something like this
if (card <= 11)
then for each one under that just manually type it all for what each number would equal to card wise. I knew it would be tedious and assume there has to be an easier way.
Last edited on
closed account (iw0XoG1T)
If is not that tedious there is only 52 cards and I will bet that if you write the code a better method will become obvious. If not post the code you have written...someone will be willing to help.
Topic archived. No new replies allowed.