0

hi there i have some python coding which i need to convert to java can ne1 help me please email me back if you can help then i will show you the coding much apprieciated or can ne1 give me some complted java code to look at

2
Contributors
6
Replies
7
Views
12 Years
Discussion Span
Last Post by shak187
0

this is a part of the program that i am having problems with can someone please help me

while (start)
{


carryOn = true;  //=== LOCAL VARIABLE ONLY USED INSIDE MAIN-LOOP
String s;
JOptionPane.showInputDialog(null, "pick a number betweeb 1 and 100");
math.random();
int num = Integer.random(LOWER_EASY, UPPER_EASY);
// print "For testing purposes the num generated is:",num
guess = getGuess(FIRST);
numGuesses = 1; // number of guesses made in this game
numGoes += 1;
}

Edited by Nick Evan: Fixed formatting

0
numGuesses = 0
while (start)
{
 boolean carryOn = true;
 String s;
 int guess = Integer.parseInt(JOptionPane.showInputDialog(null,"pick a number between 1 and 100"));
 int num = Random.nextInt(UPPER_EASY-LOWER_EASY)+LOWER_EASY; //range between LOWER_EASY and UPPER_EASY
 System.out.println("For testing purposes the num generated is: "+num);
 numGuesses++;
}
0

the coding didnt work im still gettting errors would u like too see the full program?????

0

I don't know Python, so anything python specific I can't really help you out with. Are you having trouble with syntax or just finding the proper relative commands?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.