Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

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

I need to create this code for a class
0
Jeka16
Asked:
Jeka16
  • 2
1 Solution
 
Andrew BeersCommented:
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
 
Jeka16Author Commented:
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
 
Jose ParrotGraphics ExpertCommented:
Hi,

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

Jose
0
 
Andrew BeersCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now