Step-1:Code the playing card and then sort the cards in a deck. Step-2:Code the deck of cards then take a card from the deck. Step-3:use the deck of cards and then rank distribution of cards. PROGRAM IN VB.NET Public Class Form1 02 Dim TheDeck As DeckOfCards 03 Dim Hands(NumberOfHands - 1) As HandOfCards 04 Const NumberOfHands As Integer = 10 05 06 07 Private Sub Form1_Paint(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.PaintEventArgs) Handles Me.Paint 08 If TheDeck IsNot Nothing Then 09 For i = 0 To NumberOfHands - 1 10 Hands(i).DrawHand(e.Graphics, 25, 25 + i * 65) 11 Next 12 End If 13 14 15 End Sub 16 17 18 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles Button1.Click 19 Console.WriteLine(\"--------\") 20 21 22 TheDeck = New DeckOfCards 23 TheDeck.ShuffleCards() 24 TheDeck.ShuffleCards() 25 \'TheDeck.ShuffleCards() 26 \' TheDeck.ShuffleCards() 27 For i = 0 To NumberOfHands - 1 28 Hands(i) = New HandOfCards 29 For c As Integer = 0 To 4 30 Hands(i).AddCard(TheDeck.TakeCard) 31 Next 32 Hands(i).SortHand() 33 Next 34 Array.Sort(Hands, New HandOfCards.HandComparer) 35 For i = 0 To NumberOfHands - 1 36 Console.WriteLine(\"{0}\" & vbTab & \"[{1}] = {2}\" & vbTab & \" {3}\" & vbTab & \"[{4}]\" & vbTab & \" ({5})\", i + 1, Hands(i).ToString, Hands(i).SuitValueOfHand, Hands(i).RankDistrubtion, Hands(i).NameOfHand, Hands(i).ValueOfHand) 37 Next 38 \'Console.WriteLine(\"Deck [{0}]\", TheDeck.DeckState) 39 \'Console.WriteLine(\"Deck [{0}]\", TheDeck.DeckState) 40 \'TheDeck.ShuffleCards() 41 \'Console.WriteLine(\"Deck [{0}]\", TheDeck.DeckState) 42 Me.Refresh() 43 End Sub 44 End Class Public Class Form1 Solution Step-1:Code the playing card and then sort the cards in a deck. Step-2:Code the deck of cards then take a card from the deck. Step-3:use the deck of cards and then rank distribution of cards. PROGRAM IN VB.NET Public Class Form1 02 Dim TheDeck As DeckOfCards 03 Dim Hands(NumberOfHands - 1) As HandOfCards 04 Const NumberOfHands As Integer = 10 05 06 07 Private Sub Form1_Paint(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.PaintEventArgs) Handles Me.Paint 08 If TheDeck IsNot Nothing Then 09 For i = 0 To NumberOfHands - 1 10 Hands(i).DrawHand(e.Graphics, 25, 25 + i * 65) 11 Next 12 End If 13 14 15 End Sub 16 17 18 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles Button1.Click 19 Console.WriteLine(\"--------\") 20 21 22 TheDeck = New DeckOfCards 23 TheDeck.ShuffleCards() 24 TheDeck.ShuffleCards() 25 \'TheDeck.ShuffleCards() 26 \' TheDeck.ShuffleCards() 27 For i = 0 To NumberOfHands - 1 28 Hands(i) = New HandOfCards 29 For c As Integer = 0 To 4 30 Hands(i).AddCard(TheDeck.TakeCard) 31 Next 32 Hands(i).SortHand() 33 Next 34 Array.Sort(Hands, New HandOfCards.HandComparer) 35 For i = 0 To NumberOfHands - 1 36 Console.WriteLine(\"{0}\" & vbTab & \"[{1}] = {2}\" & vbTab & \" {3}\" & vbTab & \"[{4}]\" & vbTab & \" ({5})\", i + 1, Hands(i).ToString, Han.