New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Cordia King

ProgrammingLab CMSI186

Cordia King
Loyola Marymount University
GPA 3.86


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 1 page Class Notes was uploaded by Cordia King on Thursday October 15, 2015. The Class Notes belongs to CMSI186 at Loyola Marymount University taught by Staff in Fall. Since its upload, it has received 15 views. For similar materials see /class/223490/cmsi186-loyola-marymount-university in ComputerScienence at Loyola Marymount University.

Similar to CMSI186 at Loyola Marymount University

Popular in ComputerScienence


Reviews for ProgrammingLab


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/15/15
CMSI I86 PROGRAMMING LABORATORY Spring2008 Program I Video Poker For our first problem we ll revisit some code that you wrote in CMSI 185 i the poker hand classifier You will build upon this code to write a teXtebased video poker prograIn Program to Write Write a set of Java classes that includes a poeenIz39deoPoeer class When invoked via jam poeenIz39deoPoeer this program creates a deck of cards shuffles it then displays the top five cards of the deck to the user Each card should be nume bered from card 1 to card 5 The program then asks the user to enter the cards that he or she would like to hold The user is ex pected to enter these cards as a commaeseparated list of numbers such as 2 3 5 The program should be robust enough however to reject any other user input without terminating in an error Incorrectly formatted input should be met with an error message and an offer to try again If the user enters nothing then this is interpreted as hold none of the cards The program then replaces the cards that were not held with the neXt cards on the deck The final set of five cards is displayed and the program states the poker hand that was formed if any Design Notes You will need at least three other classes in addition to poeer VideoPoeer opoeenCm d represents a single playing card with methods for determining that card s suit and rank as well as representing that card as a humanereadable string 0 poeenDete represents a standard set of 52 playing cards with methods for accessing individual cards in that deck as well as shuffling the deck and checking it for validity o poeenPoeerHandClam er holds routines for de termining whether a set of cards contains a known poker hand And because PoeerHandClam er can be somewhat involved you should have a PoeerHandClam eDxt class as well Gotchas 0 Remember that poker hands aren t disjoint i a full house conmins a pair and a trio i but of course the full house wins because it s ranked higher Make sure to consider that 0 Processing the user s input i especially in a roe bust manner as speci ed here i can be a task in its own right You should design your code so that these routines are easy to test and easy to modify this is actually true of all the code you write but particularly compelling in this case Possible Enhancements After you have fulfilled the core specifications of the video poker program you can explore the fole lowing enhancements 0 Add a command line argument which specifies number of hands that the user wishes to play For example invoking jampoeer VideoPoeer 5 should play 5 hands of video poker 0 Implement a scoring system attaining the better and rarer poker hands results in more points and thus higher scores 0 Improve the user interface in a teXtebased envie ronment can the program interact with the user in a manner that is easier to learn more entere taining andor less prone to errors 0 The Java mum construct is a relatively new addie tion to the language Look it up and see if you can use it to improve your code in some way


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Anthony Lee UC Santa Barbara

"I bought an awesome study guide, which helped me get an A in my Math 34B class this quarter!"

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.