CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Jack2727

Search: Search took 0.06 seconds.

  1. [RESOLVED] Calculating which number is closets

    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...
  2. Replies
    14
    Views
    12,637

    Re: Problem with -negative output

    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...
  3. Replies
    14
    Views
    12,637

    Re: Problem with -negative output

    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...
  4. Replies
    14
    Views
    12,637

    Re: Problem with -negative output

    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...
  5. Replies
    14
    Views
    12,637

    Re: Problem with -negative output

    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...
  6. Replies
    14
    Views
    12,637

    Re: Problem with -negative output

    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...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured