November 29th, 2010, 07:47 PM
I have tried and tried and continueously failed............
Guess the Number game
Full run down, I have a program that asks the user how many users are playing, say I enter 2
Then it will ask...
October 15th, 2010, 11:21 AM
ONly problem with that way, is we haven't learned it lol
Hmm I can't get the if statement to work right
int remainder = pplNumber % pplLifeboat;
System.out.println(remainder);
if...
October 15th, 2010, 10:09 AM
DUde your a LIFE SAVIOR!!, I finally get how to apply modulus, due to your explanation so basically all I need to do is create an if statement to add 1 if there is a remainder or to leave it alone...
October 14th, 2010, 06:16 PM
I've addressed the teacher about this issue but all he said was use Modulus Division
BUt i don't understand how modulus works or where to even begin putting it in, I might just hand my project in...
October 14th, 2010, 06:14 PM
Its correct, but wrong because if you end up putting in that theres 800 passengers and 100 passengers per lifeboat, then your suppose to get a minimum of 8.0 lifeboats but because you have the ++ it...
October 14th, 2010, 05:02 PM
Ah, someone else who's doing this project, most likely from the same class as me >: )
If im correct you trying to get it to do this?
**The Titanic Lifeboat Program**
Enter the name of the...