ok this is what i am attempting to do. i need to add a method to check if a move is valid. for example if i put in 0,0 for x and the rperson playing o does the same thing i want to be able to tell...
Type: Posts; User: big_c
ok this is what i am attempting to do. i need to add a method to check if a move is valid. for example if i put in 0,0 for x and the rperson playing o does the same thing i want to be able to tell...
ok so how would i go about creating that method using boolen.
hello all i am finishing up a tic tac toe game but i have a question about Boolean vs int. my question is what do i do if i need to use symbols such as <>||=&& with boolean. here is a fragment of...
hello again i just fixed the stopping when i put in 0,0 but it keeps going even if i have three x or o's it stops once i get all nine moves. i think i need an if statement in the tic tac toe runner?...
good afternoon everyone. i have been working on a tictactoe game using arrays and if statements and loops. my problem is the game exits when i type in row 0 and column 0. also i was wondering if you...
any suggestions for the next prime method
omg i fell like such an idiot.
good afternoon everyone i am working on a prime number generator and i am confused on a couple things. first thing is i am getting an error for my Boolean isPrime statement. also i have to create a...
hello all. i am working on the Fibonacci sequence constructor and i was wondering if i posted wha ti have so far if you could tell me if im on the right trac or not and maybe give me a few pointers...
ahhh i see what your saying now. that makes sense. thats for the help and clarification
thanks but i actually figured it out yesterday morning. instead of makeing low = 1 i set low to low=rand-5 and high=rand+5 and that seems to work out just as well. thanks for the help anyways
i have a question about my program. i have it set up to give an interval if its to high or to low but its a very wide range i was wondering if there was a way to narrow the range down to within like...
sweet its just what i was looking for. im really good with the while loop idk why i just didnt stick with that in the first place
i think i figured one thing out i have to do a nested loop with in order to have guess loop until the answer is right.
like if the random number is 559 and i put in 340 it should say something like your guess is to low try guessing between 341 and 560.
hey everyone i am stuck with this program. im trying to make a number guessing game using loops and if statements. i know how to do them individually but i am struggling with doing them together....
sweet deal. i really wish i didnt lose my book lol
hey guys i have a question about implimenting a random number method. i cant remember what i have to import for it. also i dont remember how to set the range. any help is much appreciated
i think we can put this one in the solved files
thanks for your guys help. i think i finally understand if statements this class is the toughest class i am in and thank godness its the only programming class i have to take :-D. this is quite the...
ok for hourly wage i used 7.15 and for hours i used 40 and 50(for overtime) the output should be 286 for 40 hours and for 50 it should be 536.25 if i used the right overtime percentage
okay heres the right ones now
class:
public class PayCheck
{
public PayCheck(double hourlyWage,double hours)
{
not quite its solved all the syntex stuff but now when i run it it returns pay as 0 instead of the answer to hours*hourlyWage.
wow it was right in front of my face the whole time and it didnt even dawn on me about the naming of it. thanks a million for all your help.
ok i attached a screen shot for the error, and both my class and main