Solved

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

Posted on 2006-11-11
7
178 Views
Last Modified: 2010-04-07
I need to create this code for a class
0
Comment
Question by:Jeka16
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Jose Parrot
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

752 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