Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

HELP

Thread view: 
ar2539@gmail.com - 28 Feb 2007 02:08 GMT
Hi, i need to create a java program.

The program have to:
Take a deck of cards (assume 52 cards to a deck) in random order. cut
the deck. cut the card from the top. shuffle the deck by laying cards
down alternatly begining with the botton card from the top sesion,
then the bottom card from the bottom section,etc. the ecess cards from
the karger section and up on top. Repeat shuffling until the deck
returns to its original state.
angrybaldguy@gmail.com - 28 Feb 2007 02:18 GMT
On Feb 27, 6:08 pm, ar2...@gmail.com wrote:
> Hi, i need to create a java program.
>
[quoted text clipped - 5 lines]
> the karger section and up on top. Repeat shuffling until the deck
> returns to its original state.

Would you like to see my rate card?  My prices for bespoke software
are very reasonable.  Also, I'll need your prof's email address so I
can submit it directly to him or her.
Patricia Shanahan - 28 Feb 2007 02:40 GMT
> Hi, i need to create a java program.
>
[quoted text clipped - 5 lines]
> the karger section and up on top. Repeat shuffling until the deck
> returns to its original state.

See http://home.earthlink.net/~patricia_shanahan/beginner.html for
general advice on getting started.

Patricia
Lew - 28 Feb 2007 04:29 GMT
> Hi, i need to create a java program.
>
[quoted text clipped - 5 lines]
> the karger section and up on top. Repeat shuffling until the deck
> returns to its original state.

The Ace of Spades, right?

Seriously, you just kind of laid it out for yourself pretty clearly. In
addition to what Patricia said, consider all the questions not even asked in
that description, and how you might answer them - how would a user know the
deck has been shuffled? What is the way each cycle will be shown, if at all?
Which control structure (loop, branch, switch, sequence) that we learned in
class seems to be most relevant?

To model the problem consider the things and the actions, that is, the nouns
and the verbs in the description of what happens. What is a card? A deck? An
Ace of Spades? What does it mean to shuffle a deck? What does the shuffling?
What makes a card bottom or top? And so on.

Good luck.

- Lew
ar2539@gmail.com - 02 Mar 2007 16:14 GMT
> ar2...@gmail.com wrote:
> > Hi, i need to create a java program.
[quoted text clipped - 24 lines]
>
> - Lew

Thanks Lew, it was very helpful


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.