For a class I'm taking, I have to write psuedo code for a program and turn it in before the assignment. I usually have to turn in the assignment about a week later. Well, I wish I had did it all at once because it looked OK when I typed it out, but just now I went to do the actual program and realized I'm an idiot.
I was creating a while loop in a java program. I was trying to get the psuedo code down pretty quick on paper so I'd have a map to follow when I was doing the actual program. I tried to start the program going into a while loop, and I had it check a counter(only do this 3 times), and also had it check against a number it was passed through every loop. If the number was <= 0, then the program would quit. In order to get it to prompt for a number all 3 times though I had the it come up inside the while loop.
But, starting the program the while loop was looking for a number.
Well hell, I didn't pass it one to start off with. So, I have turned in a bogus psuedo code, and an actual assignment that's nothing like it. oh well. dumb mistakes!!!!
So basically,
start
while (counter < turn && number <= 0) <---never passed a number...weak.
get number;
......
end while
stop
I was creating a while loop in a java program. I was trying to get the psuedo code down pretty quick on paper so I'd have a map to follow when I was doing the actual program. I tried to start the program going into a while loop, and I had it check a counter(only do this 3 times), and also had it check against a number it was passed through every loop. If the number was <= 0, then the program would quit. In order to get it to prompt for a number all 3 times though I had the it come up inside the while loop.
But, starting the program the while loop was looking for a number.
So basically,
start
while (counter < turn && number <= 0) <---never passed a number...weak.
get number;
......
end while
stop