Re: help needed on inputting - tearing hair out .. please!!!



well.. i dont know how wrong my code is.. but i desparetly need help
hehe.. the psuecode solution is as follows:

Roll a 12 sided die to choose a number in the range 1....12
while the user has not made an incorrect guess
ask the user to guess whether they think the next number will be higher
or lower than the current number
prompt the user to enter either "hi" or "lo"
choose a new random number by rolling a 12 sided die
if the users guess was correct
increment a count of correct guesses
update the stroed current number
end if
end while
the game is over - tell the user how many correct guesses they made..

any ideas how to change my program!?!?

patrick

.



Relevant Pages

  • Re: help needed on inputting - tearing hair out .. please!!!
    ... the psuecode solution is as follows: ... > Roll a 12 sided die to choose a number in the range 1....12 ... made an incorrect guess" part is a bit vague to me). ...
    (comp.lang.java.help)
  • Re: AKICIF: Probability/math question
    ... >infinite number of times you would expect the average roll to be 3.5, ... >say you are presented with a set of data where a 6 sided die was ... >rolled 100 times and the average roll was 4.5. ... >the probability of getting an average roll of 4.5 or higher over 100 ...
    (rec.arts.sf.fandom)
  • AKICIF: Probability/math question
    ... probabilities for rolling dice? ... infinite number of times you would expect the average roll to be 3.5, ... say you are presented with a set of data where a 6 sided die was ... rolled 100 times and the average roll was 4.5. ...
    (rec.arts.sf.fandom)
  • Re: AKICIF: Probability/math question
    ... > infinite number of times you would expect the average roll to be 3.5, ... > say you are presented with a set of data where a 6 sided die was ... > the probability of getting an average roll of 4.5 or higher over 100 ... variance and the standard deviation are easily calculated using ...
    (rec.arts.sf.fandom)
  • psuedocode to java..
    ... this is the start of psuedocode i need to ... convert into java: ... Roll a 12 sided die to choose a number in the range 1.....12 ...
    (comp.lang.java.help)