Solved

Is there anybody that can help me with the java code for deal or no deal?

Posted on 2006-11-11
7
175 Views
Last Modified: 2010-04-07
I need to create this code for a class
0
Comment
Question by:Jeka16
  • 2
7 Comments
 
LVL 10

Expert Comment

by:Andrew Beers
ID: 17931591
o.O;

Graphical or just a chance based menu program.  And do you truly mean Java or do you mean JavaScript?  A little more detail as to what you've tried or exactly what problem you are trying to address and we'll be able to help you!  (As Venabili has requested)

As soon as you update the question we'll try our best to help you!  (Understand we cannot provide complete code for anything and we cannot do your homework assignments for you.  We can help you out with implementation... assist you with sections of code... or answer questions based on Algorithms but once again I itterate... We cannot do your homework for you)

~Aqua
0
 

Author Comment

by:Jeka16
ID: 17934196
We're having problems creating the loop that calls the random number generator.......evertything else we've got so far, is a group project......is if by truly Java you mean starting from scratch and using TextPad to create the program.....the text used for the class is called, Simply Java Programming....
0
 
LVL 18

Expert Comment

by:JoseParrot
ID: 17942701
Hi,

Please post the code you have and explain what you expect from it.

Jose
0
 
LVL 10

Accepted Solution

by:
Andrew Beers earned 500 total points
ID: 17958371
o.O;

Looping in java?  You would have a variable to determine the amount in each case... aka Loop what... 25 or so times?  Since each number can only happen once you make an array of the numbers you want:

Array of {.01,1,10,100...}

Then you choose your random number out of Random between [0..Array.Length)  ((Left inclusive))

Then when you select a number for a case you remove that entry from your array then you have the initial Array.Length - 1.  Tada!  Awsome eh?  That way you always have unique numbers in the case and you can predetermine the numbers.

If you have a different problem with declaring a "for loop" I believe your problem belongs in Java Programming TA rather than Game Dev.

~Aqua
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Canvas - Setting a Background Image 3 1,375
Questions about virtual reality solution 8 316
Unity 3D Lighting 1 81
count7 challenge 12 103
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now