Create a program that will simulate the process of dealing cards from a 52-card deck by generating

Question:

Create a program that will simulate the process of dealing cards from a 52-card deck by generating 1,000 random integers in the range 1–52. Assume that numbers 1–13 represent clubs, 14–26 represent diamonds, 27–39 represent hearts, and 40–52 represent spades. Display the number of times each suit occurred in the 1,000 “deals.”

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: