3

I am working on a probability homework assignment for my discrete math class. One of the questions involves calculating the probability of drawing 7 cards and having exactly one land card and 6 non-land cards. We are given that we start off with 60 cards, 24 of which are land, and 36 of which are non-land.

I would like to use visuals (vertical rectangles that look like cards) to represent the various possible arrangements for this event.

In other words, I would like to draw a vertical rectangle with the letter "L" in it, and six other vertical rectangles with the letter "X" in each, with spaces in between each vertical rectangle.

How would I be able to do this? Thanks so much for reading this. Appreciate any help you can provide to me :D

Richard
  • 115

2 Answers2

2

I could not imagine a problem of cards with boxed characters. I would need something more realistic:

mwe

\documentclass{article}
\usepackage{pst-poker}
\psset{back=simple,backcolor=green}
\begin{document}
\crdflop\crdsevd\crdsixh\crdsixs 
\crdflop\crdfiveh\crdback\crdback\par 
\crdKd \crdback \crdback \crdpair{\crdKs}{\crdtenh} \crdpair{\crdQs}{\crdback} 
\end{document}

Warning: It takes time compile this :(

Fran
  • 80,769
1

enter image description here

\documentclass{article}

\begin{document}

\framebox(12,20){L}
\framebox(12,20){X}
\framebox(12,20){}
\framebox(12,20){X}

\end{document}
David Carlisle
  • 757,742