Visual Basic, Card Shuffling and Dealing Simulation, from source code

May 5th, 2015
Studypool Tutor
Access Careers - Hempstead
Price: $10 USD

Tutor description

Use Visual Basic to program, debug, and test the following programming project. change the main screen graphic to something of your own design. For the cards, each card can be any available from a standard deck of cards. Once a card is used, it cannot be used again in that hand (example: you draw the Jack of Hearts; you cannot draw that same card again). When all 5 cards are shown on screen, allow the user to discard and draw new cards once (up to all 5 cards at a time, but only allow them to change the cards once). Inform the user of their result in a dialog box (example: 3 of a kind or 2 pairs, etc.). After the user clears the result, allow the user to draw a hand again or exit the program. All programs should have basic menu options that allow the user to exit the program and perform tasks you deem necessary for the program to function correctly. After creating the program, be sure to debug and test your code. Subm

Word Count: 302
Showing Page: 1/2
Public Class DeckPrivate cards As Hand 'The cards currently in the deck.Private rand As Random 'Used to generate random numbers.Public ReadOnly Property Count() As IntegerGetReturn GetEnd PropertyPublic Sub New() = New Hand'Create a full deck with no Jokers.For Each suit As Suit In [Enum].GetValues(GetType(Suit))If suit <> suit.None ThenFor Each face As Face In [Enum].GetValues(GetType(Face))If face <> face.None Card(face, suit))End IfNext faceEnd IfNext suitMe.rand = New RandomEnd SubPublic Sub Shuffle()Dim shuffle

Review from student

Studypool Student
" Excellent job "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1824 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors