1 Hour, Closed Notes, Browser open to Java API docs is OK

Size: px
Start display at page:

Download "1 Hour, Closed Notes, Browser open to Java API docs is OK"

Transcription

1 CSCI 143 Exam 2 Name 1 Hour, Closed Notes, Browser open to Java API docs is OK A. Short Answer For questions 1 5 credit will only be given for a correct answer. Put each answer on the appropriate line. 1. [4] In the Java AWT, a WindowListener registered with a Frame can be used so that a click in the go away box of the frame s window will close the program. (T/F) [4] If an exception is thrown while a program is running then you can be certain that the programmer has made an error. (T/F) [4] In the Java AWT, a MouseListener object registered with a Button causes a click on that Button to activate the code in the mouseclicked method of the MouseListener object. (T/F) [4] When using GridLayout, one needs to specify the geographic location (i.e. North, South, etc.) of each Component added to the Container. (T/F) [4] It is ok for a class to define two methods with the same name, as in the code below: (T/F) 5. public void setmood() { System.out.println("I am a happy person"); public void setmood(string mood) { System.out.println("I am a "+mood+" person"); 1

2 B. Medium Answer Answer each of the following as directed, or using one or two sentences. Some partial credit may be given. 6. [8] A java.awt.button object has a processevent method as well as a processactionevent method. What is the difference between the two? 7. [8] Predict the output when the following Java program runs. public class Mystery { int y = 4; public int divide12(int x) throws Exception { if (x == 0) throw(new Exception()); else return(12/x); public void test() { try { System.out.println("12 divided by " + y + " is " + divide12(y)); catch(exception e) { System.out.println("The end"); return; y = y - 1; test(); public static void main(string[] args) { Mystery m = new Mystery(); m.test(); 2

3 C. Long Answer Solve each of the following in the space provided (use the back of the facing page if necessary). Partial credit may be given. 8. [8] I am working on a class that extends java.awt.frame. I want my Frame to have 10 circles each having a color chosen at random and each having a random diameter between 5 and 20 units. The circles are placed at random locations within the frame. Write the paint method. As a hint, the expression (int) ((30 * Math.random()) + 10 returns a random int between 10 and 40. Another hint is that you can generate a random color by a call to new Color(***, ***, ***) where each of the *** should be replaced by its own random int in the range [8] Now I want exactly the same functionality but I want to extend javax.swing.jframe instead of java.awt.frame. Explain what needs to change. 3

4 10. [8] We never did do any audio during this course. Until now!! If you decided you needed to add music to one of your AWT or Swing programs, how would you do it? Describe some steps you would take. What do you look for? Where do you look? How do you look? What kind of documentation do you hope to find? What kind of tutorial material do you expect to find? Describe your research process and a few, a very few, key discoveries. 4

5 11. [20] I want to design a Java program to play Poker. You do not need to know anything about Poker beyond what is given in this question. Poker is a game played with a standard deck of 52 cards played by a number of players sitting around a table. Also seated at the table is a dealer. Each player possesses a stack of chips (tokens of monetary value with which to bet). A game proceeds as follows: (a) Each player places one chip onto the table. This initial, compulsory bet is called the Ante. (b) The dealer deals two cards to each of the players. (These cards are dealt face down, and only the player is able to see those cards.) We call these the hidden cards. Each player has two, and nobody knows what hidden cards the other players hold. (c) A round of betting takes place. Each player in turn may choose to fold, call, or raise. (Do not worry about the meaning of those terms. Just be aware that they may involve placing some of the player s chips on the table.) (d) Now the dealer deals three cards face up on the table. These are the first three of what will eventually be five community cards. Each player will, eventually, generate their best 5-card poker hand by choosing five out of seven available cards. (Do not worry about what constitutes the best poker hand: Just think of it a 5- card subset chosen according to some strategy from the seven available.) For each player the seven available cards are their own two hidden cards and the eventual five community cards. (e) Before the fourth community card is dealt, there will be a round of betting, during which each player may fold, call or raise. (f) Then the dealer deals the fourth community card face up on the table where every player can see it. (g) Then another round of betting. (h) Then the fifth and final community card is dealt. (i) Then the final round of betting. (j) At the end of the final round of betting, any players who have not previously folded will show their hands and the best hand takes all of the chips that have been bet. You are not to write Java code for this question. Just design some classes, and think about where various variables and methods belong. This question is continued on the next page, where a table is provided in which you can enter your answers. 5

6 In the first column is a list of potential classes, each with a name that should suffice for you to understand its purpose. Space is provided for you to add more classes. Do so, and choose meaningful names. In the second column is the parent class. It may be that your classes extend known Java classes. This is where you write the name of the parent class. If you don t need inheritance, just extend java.lang.object. You should also use the second column to list any interfaces you want your class to implement. The third column lists some of the variables used to store the object s state. Choose meaningful names. The last column should list some of the public methods. Name them. There is no single correct answer to this question. Try to think through the early stages of solving the poker simulation problem and design a workable scenario. If you need more classes than I ve provided space for then make space. Class extends Variables public Methods Card java.awt.component boolean faceup; public void paint() Dealer Table Player 6

7 12. [4] In one or two sentences explain what is a Thread. 13. [4] I have a class called Frog that is to be used in a video game that I m designing. Write two headers that I can use for the class in order that any Frog object will be able to run as an independent thread. (a) public class Frog { (b) public class Frog { 14. [4] Whichever way I declare the class Frog, there is one method that I absolutely must define (in one case) and definitely should override (in the other case). What is that method? 15. [4] In my video game I also have a class LilyPad. It has a method public boolean isoccupied() that a Frog object can call to find out if there is already a frog on the LilyPad object, and a public void climbon(frog client) that a Frog object can call in order to place itself on this LilyPad object. As you know, it is not desirable for more than one frog to sit on the same lily pad, so within the Frog class we have code: LilyPad lily = new LilyPad();... if (lily.isoccupied()) { // do nothing else { lily.climbon(this); Clearly the intention is that no Frog object should ever attempt to climb on to a LilyPad object that another Frog object is already sitting on. Sadly, when I run my game, I find that occasionally a Frog will attempt to climb on to an already occupied LilyPad. Explain. 16. [4] Fix the problem. Write code for the LilyPad class to be called from the Frog class and explain why it will make it impossible for a frog to climb an occupied lilypad. 7

TEXAS HOLD EM POKER FOR SIGHT

TEXAS HOLD EM POKER FOR SIGHT Lions Club TEXAS HOLD EM POKER FOR SIGHT Official Rules (April 2016) Buy-in/Rebuy/Add-on: The dollar amount of the initial buy-in shall be posted in plain view of the playing table(s). The buy-in ($135)

More information

RULES FOR TEXAS HOLD EM POKER

RULES FOR TEXAS HOLD EM POKER RULES FOR TEXAS HOLD EM POKER DEFINITIONS In these rules Action means a player acting in turn All-in means a player has invested all of his/her remaining chips in the outcome of a hand. His/her wager cannot

More information

The game of roulette is played by throwing a small ball onto a rotating wheel with thirty seven numbered sectors.

The game of roulette is played by throwing a small ball onto a rotating wheel with thirty seven numbered sectors. LIVE ROULETTE The game of roulette is played by throwing a small ball onto a rotating wheel with thirty seven numbered sectors. The ball stops on one of these sectors. The aim of roulette is to predict

More information

RULES FOR PLAY TEXAS HOLD EM

RULES FOR PLAY TEXAS HOLD EM RULES FOR PLAY TEXAS HOLD EM The player to the left of the dealer s button places the small blind which will be a stipulated amount. The player seated second from the dealer s left places the big blind

More information

Texas Hold em No Limit Freeze Poker Tournament

Texas Hold em No Limit Freeze Poker Tournament Texas Hold em No Limit Freeze Poker Tournament Tournament Overview and Rules & Regulations South Beach Casino and Resort will be conducting Texas Hold em No Limit Poker Tournaments. The entry fee for each

More information

Laboratory work in AI: First steps in Poker Playing Agents and Opponent Modeling

Laboratory work in AI: First steps in Poker Playing Agents and Opponent Modeling Laboratory work in AI: First steps in Poker Playing Agents and Opponent Modeling Avram Golbert 01574669 agolbert@gmail.com Abstract: While Artificial Intelligence research has shown great success in deterministic

More information

In this variation of Poker, a player s cards are hidden until showdown. Prior to receiving cards, you must place an initial wager known as an ante.

In this variation of Poker, a player s cards are hidden until showdown. Prior to receiving cards, you must place an initial wager known as an ante. 1 POKER Poker is one of the most skilful and fascinating games ever devised, offering players a chance to test their skills against other players rather than the house (casino). Poker is as much a game

More information

How to Play. Player vs. Dealer

How to Play. Player vs. Dealer How to Play You receive five cards to make your best four-card poker hand. A four-card Straight is a Straight, a four-card Flush is a Flush, etc. Player vs. Dealer Make equal bets on the Ante and Super

More information

You are to simulate the process by making a record of the balls chosen, in the sequence in which they are chosen. Typical output for a run would be:

You are to simulate the process by making a record of the balls chosen, in the sequence in which they are chosen. Typical output for a run would be: Lecture 7 Picking Balls From an Urn The problem: An urn has n (n = 10) balls numbered from 0 to 9 A ball is selected at random, its' is number noted, it is set aside, and another ball is selected from

More information

GUIs with Swing. Principles of Software Construction: Objects, Design, and Concurrency. Jonathan Aldrich and Charlie Garrod Fall 2012

GUIs with Swing. Principles of Software Construction: Objects, Design, and Concurrency. Jonathan Aldrich and Charlie Garrod Fall 2012 GUIs with Swing Principles of Software Construction: Objects, Design, and Concurrency Jonathan Aldrich and Charlie Garrod Fall 2012 Slides copyright 2012 by Jeffrey Eppinger, Jonathan Aldrich, William

More information

Introduction to ProForm Rapid elearning Studio. What is ProForm? The ProForm Course Authoring Tool allows you to quickly create

Introduction to ProForm Rapid elearning Studio. What is ProForm? The ProForm Course Authoring Tool allows you to quickly create Introduction to ProForm Rapid elearning Studio The ProForm Rapid elearning Studio includes the ProForm Course Authoring Tool, the SWiSH Rapid Animation Tool, and the RapidCam Screen Recording Tool. This

More information

Slots... 1. seven card stud...22

Slots... 1. seven card stud...22 GAMING GUIDE table of contents Slots... 1 Blackjack...3 Lucky Ladies...5 Craps...7 Roulette... 13 Three Card Poker... 15 Four Card Poker... 17 Texas Hold em Bonus Poker... 18 omaha Poker... 21 seven card

More information

CS170 Lab 11 Abstract Data Types & Objects

CS170 Lab 11 Abstract Data Types & Objects CS170 Lab 11 Abstract Data Types & Objects Introduction: Abstract Data Type (ADT) An abstract data type is commonly known as a class of objects An abstract data type in a program is used to represent (the

More information

3 Improving the Crab more sophisticated programming

3 Improving the Crab more sophisticated programming 3 Improving the Crab more sophisticated programming topics: concepts: random behavior, keyboard control, sound dot notation, random numbers, defining methods, comments In the previous chapter, we looked

More information

Ultimate Texas Hold'em features head-to-head play against the player/dealer and an optional bonus bet.

Ultimate Texas Hold'em features head-to-head play against the player/dealer and an optional bonus bet. *Uultimate Texas Hold'em is owned, patented and/or copyrighted by ShuffleMaster Inc. Please submit your agreement with Owner authorizing play of Game in your gambling establishment together with any request

More information

LIVE CASINO HOLD EM. Live Casino Hold em five-card poker, world-class quality. As real as it gets BENEFITS AT A GLANCE. www.evolutiongaming.

LIVE CASINO HOLD EM. Live Casino Hold em five-card poker, world-class quality. As real as it gets BENEFITS AT A GLANCE. www.evolutiongaming. LIVE CASINO HOLD EM BENEFITS AT A GLANCE FOR OPERATORS: Authentic gameplay and interactive features Incremental profit and maximised player lifetime value Ability to build strong customer relationships

More information

on a table having positions for six players on one side of the table 1. A true to scale rendering and a color photograph of the

on a table having positions for six players on one side of the table 1. A true to scale rendering and a color photograph of the Full text of the proposal follows (additions indicated in boldface thus; deletions indicated in brackets [thus]): 13:69E 1.13M Boston 5 stud poker table; boston 7 stud poker table; physical characteristics

More information

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq

qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq qwertyuiopasdfghjklzxcvbnmqwerty uiopasdfghjklzxcvbnmqwertyuiopasd fghjklzxcvbnmqwertyuiopasdfghjklzx cvbnmqwertyuiopasdfghjklzxcvbnmq Introduction to Programming using Java wertyuiopasdfghjklzxcvbnmqwertyui

More information

Object of the Game The object of the game is for each player to form a five-card hand that ranks higher than the player-dealer s hand.

Object of the Game The object of the game is for each player to form a five-card hand that ranks higher than the player-dealer s hand. *Ultimate Texas Hold em is owned, patented and/or copyrighted by Bally Technologies, Inc. Please note that the Bureau is making the details of this game available to the public as required by subdivision

More information

FIRST GRADE Number and Number Sense

FIRST GRADE Number and Number Sense FIRST GRADE Number and Number Sense Hundred Chart Puzzle Reporting Category Number and Number Sense Topic Count and write numerals to 100 Primary SOL 1.1 The student will a) count from 0 to 100 and write

More information

Casino Gaming Rule 2010

Casino Gaming Rule 2010 Queensland Office of Liquor and Gaming Regulation Casino Gaming Rule 2010 This Rule is prepared by the Queensland Office of Liquor and Gaming Regulation 2010 V6 1 Queensland Contents Part 1 Preliminary...

More information

CS193j, Stanford Handout #10 OOP 3

CS193j, Stanford Handout #10 OOP 3 CS193j, Stanford Handout #10 Summer, 2003 Manu Kumar OOP 3 Abstract Superclass Factor Common Code Up Several related classes with overlapping code Factor common code up into a common superclass Examples

More information

System.out.println("\nEnter Product Number 1-5 (0 to stop and view summary) :

System.out.println(\nEnter Product Number 1-5 (0 to stop and view summary) : Benjamin Michael Java Homework 3 10/31/2012 1) Sales.java Code // Sales.java // Program calculates sales, based on an input of product // number and quantity sold import java.util.scanner; public class

More information

players on one side of the table and a place for the dealer on the opposite side.

players on one side of the table and a place for the dealer on the opposite side. 13:69E-1.10D Switch Hands table; physical characteristics (a) Switch Hands shall be played at a table having betting positions for no more than six players on one side of the table and a place for the

More information

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 Oct 4, 2013, p 1 Name: CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 1. (max 18) 4. (max 16) 2. (max 12) 5. (max 12) 3. (max 24) 6. (max 18) Total: (max 100)

More information

GAME DESCRIPTION AND RULES HOLD'EM

GAME DESCRIPTION AND RULES HOLD'EM GAME DESCRIPTION AND RULES HOLD'EM Hold'Em uses a flat disc called a dealer button to indicate the player in the dealer position for that hand (even though the game is actually dealt by a non-playing casino

More information

Term Project: Roulette

Term Project: Roulette Term Project: Roulette DCY Student January 13, 2006 1. Introduction The roulette is a popular gambling game found in all major casinos. In contrast to many other gambling games such as black jack, poker,

More information

Mathematical Analysis Of Packs Poker. September 22, 2014. Prepared For John Feola New Vision Gaming 5 Samuel Phelps Way North Reading, MA 01864

Mathematical Analysis Of Packs Poker. September 22, 2014. Prepared For John Feola New Vision Gaming 5 Samuel Phelps Way North Reading, MA 01864 Mathematical Analysis Of Packs Poker September 22, 2014 Prepared For John Feola New Vision Gaming 5 Samuel Phelps Way North Reading, MA 01864 Office: 978 664-1515 Fax: 978-664 - 5117 www.newvisiongaming.com

More information

WHAT ARE THE ODDS? The Wizard of Odds Analyzes the New Casino Games

WHAT ARE THE ODDS? The Wizard of Odds Analyzes the New Casino Games The Wizard of Odds Analyzes the New Casino Games BY MICHAEL SHACKLEFORD The insurance business has always been a gamble but actuaries haven t exactly been considered high rollers at the gaming table. Until

More information

Sequence Diagram Tutorial. From: UML Distilled, Third Edition, Chapter 4 M. Fowler

Sequence Diagram Tutorial. From: UML Distilled, Third Edition, Chapter 4 M. Fowler Sequence Diagram Tutorial From: UML Distilled, Third Edition, Chapter 4 M. Fowler Use Cases and Scenarios A use case is a collection of interactions between external actors and a system In UML, a use case

More information

Texas Hold em. From highest to lowest, the possible five card hands in poker are ranked as follows:

Texas Hold em. From highest to lowest, the possible five card hands in poker are ranked as follows: Texas Hold em Poker is one of the most popular card games, especially among betting games. While poker is played in a multitude of variations, Texas Hold em is the version played most often at casinos

More information

Double Deck Blackjack

Double Deck Blackjack Double Deck Blackjack Double Deck Blackjack is far more volatile than Multi Deck for the following reasons; The Running & True Card Counts can swing drastically from one Round to the next So few cards

More information

During the process of creating ColorSwitch, you will learn how to do these tasks:

During the process of creating ColorSwitch, you will learn how to do these tasks: GUI Building in NetBeans IDE 3.6 This short tutorial guides you through the process of creating an application called ColorSwitch. You will build a simple program that enables you to switch the color of

More information

There are a number of superb online resources as well that provide excellent blackjack information as well. We recommend the following web sites:

There are a number of superb online resources as well that provide excellent blackjack information as well. We recommend the following web sites: 3. Once you have mastered basic strategy, you are ready to begin learning to count cards. By counting cards and using this information to properly vary your bets and plays, you can get a statistical edge

More information

Java 6 'th. Concepts INTERNATIONAL STUDENT VERSION. edition

Java 6 'th. Concepts INTERNATIONAL STUDENT VERSION. edition Java 6 'th edition Concepts INTERNATIONAL STUDENT VERSION CONTENTS PREFACE vii SPECIAL FEATURES xxviii chapter i INTRODUCTION 1 1.1 What Is Programming? 2 J.2 The Anatomy of a Computer 3 1.3 Translating

More information

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus

CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus 1. Purpose This assignment exercises how to write a peer-to-peer communicating program using non-blocking

More information

PLACE BETS (E) win each time a number is thrown and lose if the dice ODDS AND LAYS HARDWAYS (F) BUY & LAY BETS (G&H)

PLACE BETS (E) win each time a number is thrown and lose if the dice ODDS AND LAYS HARDWAYS (F) BUY & LAY BETS (G&H) craps PASS LINE BET (A) must be rolled again before a 7 to win. If the Point is and the shooter continues to throw the dice until a Point is established and a 7 is rolled before the Point. DON T PASS LINE

More information

Iteration CHAPTER 6. Topic Summary

Iteration CHAPTER 6. Topic Summary CHAPTER 6 Iteration TOPIC OUTLINE 6.1 while Loops 6.2 for Loops 6.3 Nested Loops 6.4 Off-by-1 Errors 6.5 Random Numbers and Simulations 6.6 Loop Invariants (AB only) Topic Summary 6.1 while Loops Many

More information

The first program: Little Crab

The first program: Little Crab CHAPTER 2 The first program: Little Crab topics: concepts: writing code: movement, turning, reacting to the screen edges source code, method call, parameter, sequence, if-statement In the previous chapter,

More information

Assignment 1: Matchismo

Assignment 1: Matchismo Assignment 1: Matchismo Objective This assignment starts off by asking you to recreate the demonstration given in the second lecture. Not to worry, the posted slides for that lecture contain a detailed

More information

How to Play Blackjack Alex Powell, Jayden Dodson, Triston Williams, Michael DuVall University of North Texas TECM 1700 10/27/2014

How to Play Blackjack Alex Powell, Jayden Dodson, Triston Williams, Michael DuVall University of North Texas TECM 1700 10/27/2014 How to Play Blackjack Alex Powell, Jayden Dodson, Triston Williams, Michael DuVall University of North Texas TECM 1700 10/27/2014 Blackjack Blackjack is a fun game that can be played either for money at

More information

Eclipse with Mac OSX Getting Started Selecting Your Workspace. Creating a Project.

Eclipse with Mac OSX Getting Started Selecting Your Workspace. Creating a Project. Eclipse with Mac OSX Java developers have quickly made Eclipse one of the most popular Java coding tools on Mac OS X. But although Eclipse is a comfortable tool to use every day once you know it, it is

More information

Special Notice. Rules. Weiss Schwarz Comprehensive Rules ver. 1.64 Last updated: October 15 th 2014. 1. Outline of the Game

Special Notice. Rules. Weiss Schwarz Comprehensive Rules ver. 1.64 Last updated: October 15 th 2014. 1. Outline of the Game Weiss Schwarz Comprehensive Rules ver. 1.64 Last updated: October 15 th 2014 Contents Page 1. Outline of the Game. 1 2. Characteristics of a Card. 2 3. Zones of the Game... 4 4. Basic Concept... 6 5. Setting

More information

Fundamentals of Java Programming

Fundamentals of Java Programming Fundamentals of Java Programming This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and exclusive use by instructors

More information

2 The first program: Little Crab

2 The first program: Little Crab 2 The first program: Little Crab topics: concepts: writing code: movement, turning, reacting to the screen edges source code, method call, parameter, sequence, if statement In the previous chapter, we

More information

The cloth covering a Three Card Poker 6 Card Bonus table (the layout) shall have wagering areas for eight players.

The cloth covering a Three Card Poker 6 Card Bonus table (the layout) shall have wagering areas for eight players. *Three Card Poker 6 Card Bonus is owned, patented and/or copyrighted by SHFL Entertainment, Inc. Please submit your agreement with Owner authorizing play of Game in your gambling establishment together

More information

INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction

INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction INTRODUCTION TO COMPUTER PROGRAMMING Richard Pierse Class 7: Object-Oriented Programming Introduction One of the key issues in programming is the reusability of code. Suppose that you have written a program

More information

Combinatorics 3 poker hands and Some general probability

Combinatorics 3 poker hands and Some general probability Combinatorics 3 poker hands and Some general probability Play cards 13 ranks Heart 4 Suits Spade Diamond Club Total: 4X13=52 cards You pick one card from a shuffled deck. What is the probability that it

More information

BAD BEAT. Bad Beat will reset at $10,000 with a qualifier of four deuces beaten. Every Monday at 6:00 AM the Bad Beat will increase by $10,000.

BAD BEAT. Bad Beat will reset at $10,000 with a qualifier of four deuces beaten. Every Monday at 6:00 AM the Bad Beat will increase by $10,000. BAD BEAT Bad Beat will reset at $10,000 with a qualifier of four deuces beaten. Every Monday at 6:00 AM the Bad Beat will increase by $10,000. OFFICIAL RULES Horseshoe may change or cancel this promotion

More information

The game also features three optional bonus bets.

The game also features three optional bonus bets. Type of Game The game of Commission Free Fortune Gow Poker utilizes a player-dealer position and is a California game. The player-dealer shall collect all losing wagers, pay all winning wagers, and may

More information

Casino Control (3 Card Poker) Approval 2006 (No 1)

Casino Control (3 Card Poker) Approval 2006 (No 1) Australian Capital Territory Casino Control (3 Card Poker) Approval 2006 (No 1) Notifiable Instrument NI2006 481 made under the Casino Control Act 2006, section 96 (Rules for Authorised Games). 1 Name

More information

How to Install Java onto your system

How to Install Java onto your system How to Install Java onto your system 1. In your browser enter the URL: Java SE 2. Choose: Java SE Downloads Java Platform (JDK) 7 jdk-7- windows-i586.exe. 3. Accept the License Agreement and choose the

More information

1 Bet Threat Texas Hold Em Gaming Equipment Rules of the Games Temporary Amendments: N.J.A.C. 19:40-1.2; and 19:46-1.17, 1.18 and 1.

1 Bet Threat Texas Hold Em Gaming Equipment Rules of the Games Temporary Amendments: N.J.A.C. 19:40-1.2; and 19:46-1.17, 1.18 and 1. 1 Bet Threat Texas Hold Em Gaming Equipment Rules of the Games Temporary Amendments: N.J.A.C. 19:40-1.2; and 19:46-1.17, 1.18 and 1.19 Temporary New Rules: N.J.A.C. 19:46-1.13X and 19:47-35 Authority:

More information

Mus is the most popular Spanish game, due to its attractiveness and characteristics. This game was born in Basque Country

Mus is the most popular Spanish game, due to its attractiveness and characteristics. This game was born in Basque Country Mus is the most popular Spanish game, due to its attractiveness and characteristics. This game was born in Basque Country Object of the game The winner of the game is the team who wins three sets. The

More information

Part I. Multiple Choice Questions (2 points each):

Part I. Multiple Choice Questions (2 points each): Part I. Multiple Choice Questions (2 points each): 1. Which of the following is NOT a key component of object oriented programming? (a) Inheritance (b) Encapsulation (c) Polymorphism (d) Parallelism ******

More information

Design and UML Class Diagrams

Design and UML Class Diagrams Design and UML Class Diagrams 1 Suggested reading: Practical UML: A hands on introduction for developers http://dn.codegear.com/article/31863 UML DistilledCh. 3, by M. Fowler How do people draw / write

More information

MAKING MATH MORE FUN BRINGS YOU FUN MATH GAME PRINTABLES FOR HOME OR SCHOOL

MAKING MATH MORE FUN BRINGS YOU FUN MATH GAME PRINTABLES FOR HOME OR SCHOOL MAKING MATH MORE FUN BRINGS YOU FUN MATH GAME PRINTABLES FOR HOME OR SCHOOL THESE FUN MATH GAME PRINTABLES are brought to you with compliments from Making Math More Fun at and Math Board Games at Copyright

More information

Effective unit testing with JUnit

Effective unit testing with JUnit Effective unit testing with JUnit written by Eric M. Burke burke_e@ociweb.com Copyright 2000, Eric M. Burke and All rights reserved last revised 12 Oct 2000 extreme Testing 1 What is extreme Programming

More information

Test Driven Development

Test Driven Development Test Driven Development Introduction Test Driven development (TDD) is a fairly recent (post 2000) design approach that originated from the Extreme Programming / Agile Methodologies design communities.

More information

1. Shuffling Machine: Cards used to play Casino War shall be dealt from an automatic card shuffling device ( shuffler ).

1. Shuffling Machine: Cards used to play Casino War shall be dealt from an automatic card shuffling device ( shuffler ). *Casino War is owned, patented and/or copyrighted by SHFL Entertainment, Inc. Please submit your agreement with Owner authorizing play of Game in your gambling establishment together with any request for

More information

1. General...3. 2. Black Jack...5. 3. Double Deck Black Jack...13. 4. Free Bet Black Jack...20. 5. Craps...28. 6. Craps Free Craps...

1. General...3. 2. Black Jack...5. 3. Double Deck Black Jack...13. 4. Free Bet Black Jack...20. 5. Craps...28. 6. Craps Free Craps... Table of Contents Sec Title Page # 1. General...3 2. Black Jack...5 3. Double Deck Black Jack...13 4. Free Bet Black Jack...20 5. Craps...28 6. Craps Free Craps...36 7. Roulette...43 8. Poker...49 9. 3-Card

More information

NewPokerSoft. Texas Holdem Poker Game Simulator

NewPokerSoft. Texas Holdem Poker Game Simulator NewPokerSoft poker for life Texas Holdem Poker Game Simulator www.newpokersoft.com Poker training simulator for Texas Holdem Here, we present the simulator of the Texas Holdem PokerGame. It can be used

More information

Threads 1. When writing games you need to do more than one thing at once.

Threads 1. When writing games you need to do more than one thing at once. Threads 1 Threads Slide 1 When writing games you need to do more than one thing at once. Threads offer a way of automatically allowing more than one thing to happen at the same time. Java has threads as

More information

Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6. Handout 3. Strings and String Class. Input/Output with JOptionPane.

Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6. Handout 3. Strings and String Class. Input/Output with JOptionPane. Handout 3 cs180 - Programming Fundamentals Spring 15 Page 1 of 6 Handout 3 Strings and String Class. Input/Output with JOptionPane. Strings In Java strings are represented with a class type String. Examples:

More information

Building Java Programs

Building Java Programs Building Java Programs Chapter 5 Lecture 5-2: Random Numbers reading: 5.1-5.2 self-check: #8-17 exercises: #3-6, 10, 12 videos: Ch. 5 #1-2 1 The Random class A Random object generates pseudo-random* numbers.

More information

GUI Event-Driven Programming

GUI Event-Driven Programming GUI Event-Driven Programming CSE 331 Software Design & Implementation Slides contain content by Hal Perkins and Michael Hotan 1 Outline User events and callbacks Event objects Event listeners Registering

More information

Champion Poker Texas Hold em

Champion Poker Texas Hold em Champion Poker Texas Hold em Procedures & Training For the State of Washington 4054 Dean Martin Drive, Las Vegas, Nevada 89103 1 Procedures & Training Guidelines for Champion Poker PLAYING THE GAME Champion

More information

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science

First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca

More information

Sharpen Solutions. 1 Part One. Sometimes there s more than one right answer. And sometimes the

Sharpen Solutions. 1 Part One. Sometimes there s more than one right answer. And sometimes the 1 Part One g h Sharpen Solutions g You didn t think we d just leave you hanging, did you? No, we thought we d be all nice and helpful with this first book, to get you hooked, and then slam you in the next

More information

Part 3: GridWorld Classes and Interfaces

Part 3: GridWorld Classes and Interfaces GridWorld Case Study Part 3: GridWorld Classes and Interfaces In our example programs, a grid contains actors that are instances of classes that extend the Actor class. There are two classes that implement

More information

Programming Methods & Java Examples

Programming Methods & Java Examples Programming Methods & Java Examples Dr Robert Harle, 2009 The following questions may be useful to work through for supervisions and/or revision. They are separated broadly by handout, but borders are

More information

Object Oriented Programming with Java. School of Computer Science University of KwaZulu-Natal

Object Oriented Programming with Java. School of Computer Science University of KwaZulu-Natal Object Oriented Programming with Java School of Computer Science University of KwaZulu-Natal January 30, 2006 2 Object Oriented Programming with Java Notes for the Computer Science Module Object Oriented

More information

FOUR CARD POKER EXPERIENCEEVERYTHING. 24/7 ACTION SilverReefCasino.com (866) 383-0777

FOUR CARD POKER EXPERIENCEEVERYTHING. 24/7 ACTION SilverReefCasino.com (866) 383-0777 FOUR CARD POKER Four Card Poker is a game that rewards skill, patience and nerve. It is similar to Three Card poker but with one major difference. In Three Card Poker, the play wager must equal the ante;

More information

2016 POKER TOURNAMENT CONTEST RULES

2016 POKER TOURNAMENT CONTEST RULES 2016 POKER TOURNAMENT CONTEST RULES SECTION 1 Code of Conduct: Temple Etz Chaim will attempt to maintain a pleasant environment for all players, staff and volunteers, but is not responsible for the conduct

More information

Collusion with another player or any other form of cheating. Creating a disturbance by arguing, shouting, or making excessive noise.

Collusion with another player or any other form of cheating. Creating a disturbance by arguing, shouting, or making excessive noise. THE OFFICIAL RULEBOOK FOR OUR CARDROOM Welcome to our card room. Your presence in our establishment means that you agree to abide by our rules and procedures. By taking a seat in one of our card games,

More information

Microsoft Expression Web Quickstart Guide

Microsoft Expression Web Quickstart Guide Microsoft Expression Web Quickstart Guide Expression Web Quickstart Guide (20-Minute Training) Welcome to Expression Web. When you first launch the program, you ll find a number of task panes, toolbars,

More information

Standards of play: Type of gaming table utilized for this game:

Standards of play: Type of gaming table utilized for this game: *Let It Ride Bonus is owned, patented and/or copyrighted by SHFL Entertainment, Inc. Please submit your agreement with Owner authorizing play of Game in your gambling establishment together with any request

More information

Online Web Learning University of Massachusetts at Amherst

Online Web Learning University of Massachusetts at Amherst GETTING STARTED WITH OWL COURSE MANAGEMENT Online Web Learning University of Massachusetts at Amherst A Series of Hands-on Activities to Teach You How to Manage Your Course Using the OWL Instructor Tools

More information

This Method will show you exactly how you can profit from this specific online casino and beat them at their own game.

This Method will show you exactly how you can profit from this specific online casino and beat them at their own game. This Method will show you exactly how you can profit from this specific online casino and beat them at their own game. It s NOT complicated, and you DON T need a degree in mathematics or statistics to

More information

Sample CSE8A midterm Multiple Choice (circle one)

Sample CSE8A midterm Multiple Choice (circle one) Sample midterm Multiple Choice (circle one) (2 pts) Evaluate the following Boolean expressions and indicate whether short-circuiting happened during evaluation: Assume variables with the following names

More information

Grundlæggende Programmering IT-C, Forår 2001. Written exam in Introductory Programming

Grundlæggende Programmering IT-C, Forår 2001. Written exam in Introductory Programming Written exam in Introductory Programming IT University of Copenhagen, June 11, 2001 English version All materials are permitted during the exam, except computers. The exam questions must be answered in

More information

Implementação. Interfaces Pessoa Máquina 2010/11. 2009-11 Salvador Abreu baseado em material Alan Dix. Thursday, June 2, 2011

Implementação. Interfaces Pessoa Máquina 2010/11. 2009-11 Salvador Abreu baseado em material Alan Dix. Thursday, June 2, 2011 Implementação Interfaces Pessoa Máquina 2010/11 2009-11 baseado em material Alan Dix 1 Windowing systems Architecture Layers Higher level Tool UI Toolkit (Widgets) Window System OS Application Hardware

More information

Welcome to Harcourt Mega Math: The Number Games

Welcome to Harcourt Mega Math: The Number Games Welcome to Harcourt Mega Math: The Number Games Harcourt Mega Math In The Number Games, students take on a math challenge in a lively insect stadium. Introduced by our host Penny and a number of sporting

More information

Scanner. It takes input and splits it into a sequence of tokens. A token is a group of characters which form some unit.

Scanner. It takes input and splits it into a sequence of tokens. A token is a group of characters which form some unit. Scanner The Scanner class is intended to be used for input. It takes input and splits it into a sequence of tokens. A token is a group of characters which form some unit. For example, suppose the input

More information

Computing Concepts with Java Essentials

Computing Concepts with Java Essentials 2008 AGI-Information Management Consultants May be used for personal purporses only or by libraries associated to dandelon.com network. Computing Concepts with Java Essentials 3rd Edition Cay Horstmann

More information

Swing. A Quick Tutorial on Programming Swing Applications

Swing. A Quick Tutorial on Programming Swing Applications Swing A Quick Tutorial on Programming Swing Applications 1 MVC Model View Controller Swing is based on this design pattern It means separating the implementation of an application into layers or components:

More information

Introduction to Object-Oriented Programming

Introduction to Object-Oriented Programming Introduction to Object-Oriented Programming Programs and Methods Christopher Simpkins chris.simpkins@gatech.edu CS 1331 (Georgia Tech) Programs and Methods 1 / 8 The Anatomy of a Java Program It is customary

More information

Dinopolis Java Coding Convention

Dinopolis Java Coding Convention Dinopolis Java Coding Convention Revision : 1.1 January 11, 2001 Abstract Please note that this version of the Coding convention is very much based on IICM s internal Dino coding convention that was used

More information

OFFICIAL RULEBOOK & POLICY GUIDE

OFFICIAL RULEBOOK & POLICY GUIDE OFFICIAL RULEBOOK & POLICY GUIDE Welcome to The Fantasy Poker League (TFPL). Your presence in our establishment means that you agree to abide by our rules and procedures. By taking a seat in one of our

More information

Pearson Onscreen Platform (POP) Using POP Offline testing system guide

Pearson Onscreen Platform (POP) Using POP Offline testing system guide Pearson Onscreen Platform (POP) Version 1.0 October 2014 02 What s in this guide? Contents 1 Before you start 2 Download a test 3 Play test 4 Upload response Read more Read more Read more Read more 03

More information

Essentials of the Java(TM) Programming Language, Part 1

Essentials of the Java(TM) Programming Language, Part 1 Essentials of the Java(TM) Programming Language, Part 1 http://developer.java.sun.com/developer...ining/programming/basicjava1/index.html Training Index Essentials of the Java TM Programming Language:

More information

Part 1 Foundations of object orientation

Part 1 Foundations of object orientation OFWJ_C01.QXD 2/3/06 2:14 pm Page 1 Part 1 Foundations of object orientation OFWJ_C01.QXD 2/3/06 2:14 pm Page 2 1 OFWJ_C01.QXD 2/3/06 2:14 pm Page 3 CHAPTER 1 Objects and classes Main concepts discussed

More information

How To Write A Program For The Web In Java (Java)

How To Write A Program For The Web In Java (Java) 21 Applets and Web Programming As noted in Chapter 2, although Java is a general purpose programming language that can be used to create almost any type of computer program, much of the excitement surrounding

More information

Mathematical Card Tricks

Mathematical Card Tricks Mathematical Card Tricks Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles May 26, 2008 At the April 10, 2008 meeting of the Teacher s Circle at AIM (the American Institute of Mathematics)

More information

Event processing in Java: what happens when you click?

Event processing in Java: what happens when you click? Event processing in Java: what happens when you click? Alan Dix In the HCI book chapter 8 (fig 8.5, p. 298), notification-based user interface programming is described. Java uses this paradigm and you

More information

JAVA Program For Processing SMS Messages

JAVA Program For Processing SMS Messages JAVA Program For Processing SMS Messages Krishna Akkulu The paper describes the Java program implemented for the MultiModem GPRS wireless modem. The MultiModem offers standards-based quad-band GSM/GPRS

More information

Training Manual. Shuffle Master Gaming Three Card Poker Training Manual R20020325

Training Manual. Shuffle Master Gaming Three Card Poker Training Manual R20020325 Training Manual 2001 Shuffle Master, Inc. First Printing All Rights Reserved Printed in the United States of America No part of this publication may be reproduced or distributed in any form or by any means,

More information

Terms and Conditions for Charitable Texas Hold em Poker Tournaments

Terms and Conditions for Charitable Texas Hold em Poker Tournaments Terms and Conditions for Tournaments Under subsection 34(2) of the Gaming Control Act, a license is subject to terms and conditions as may be imposed by the Registrar. These are the terms and conditions

More information

Event-Driven Programming

Event-Driven Programming Event-Driven Programming Lecture 4 Jenny Walter Fall 2008 Simple Graphics Program import acm.graphics.*; import java.awt.*; import acm.program.*; public class Circle extends GraphicsProgram { public void

More information

IRA EXAMPLES. This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account).

IRA EXAMPLES. This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account). IRA EXAMPLES This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account). Definite Counting Loop Example IRA After x Years This first example illustrates

More information