Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Notice to Students
1. This assignment should be written by individual student. All downloaded materials are
not allowed.
2. Plagiarism will be treated seriously. All assignments that have been found involved wholly
or partly in plagiarism (no matter these assignments are from the original authors or from
the plagiarists) will score ZERO marks.
3. Your program must use Java JDK1.8 or above to develop.
4. Your program must be structured and well commented.
The first few lines in the source file must be comments stating the name of the source file,
student name, student ID, course name, course code, and brief description of your
program.
Name of Source File: PokerGame.java
Student Name (ID): Chan Tai Man (183456789)
Course Name (Code): HD in GA (IT114206)
Program Description:
This program is . . . . . . .
. . . . .
. . . . .
Marks will be deducted if such comments are not included.
5. Write?down your test cases and the reason(s) for them. Test your program by using your
test cases.
6. You are required to hand a zip file containing the following 2 items via the assignment
link in Moodle:
a. A Java Program file (PokerGame.java + PokerGame.class), including detailed
comments
b. A Microsoft Word file (TestResult.doc) stores all screens captured of your test cases
8. Weight of this assignment is 20% of the module total assessment.
ITE3101 Introduction to Programming Assignment (2018/19)
Page 2
Poker Game
Distribution of marks:
30% for Problem solving technique, e.g. algorithms
30% for Java programming technique, e.g. statements, control structures, etc.
20% for good program styles, e.g. naming, comments, etc.
20% for the evidence of Testing, e.g. test case, test result, etc.
Problem Specification:
You are asked to develop a Java Program that designs a simple Poker game.
A standard deck of cards has 52 cards. Each card has a value and a suit. Values contain
Ace(A), 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack(J), Queen(Q), and King(K). The four suits are Clubs,
Diamonds, Hearts and Spades. Clubs and Spades are Black, while Diamonds and Hearts are
Red.
In this game, we design our game rules and score as follow:
Poker Rule Description Score
Straight Flush 5 cards in sequence in the SAME suit 8
Four of a Kind 4 cards of the SAME rank and any other card 7
Full House 3 of a kind and a Pair 6
Flush 5 cards of the SAME suit that are not all in sequence 5
Straight 5 cards in sequence but not all of the same suit 4
Three of a Kind 3 cards of a the same rank and 2 unmatched cards 3
Two Pair 2 sets of 2 cards of a the same rank and an unmatched card 2
One Pair 2 cards of a the same rank and 3 unmatched cards 1
No Pattern is Found! 0