User Profile

Collapse

Profile Sidebar

Collapse
beatjunkie27
beatjunkie27
Last Activity: Mar 25 '08, 08:26 PM
Joined: Mar 18 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • beatjunkie27
    replied to Stuck on While Loop
    in Java
    and maybe sprinkle some if else statements in there to show an error message if user enters a wrong amount of days?
    See more | Go to post

    Leave a comment:


  • beatjunkie27
    replied to Stuck on While Loop
    in Java
    Would a "for" loop be better in this situation?
    See more | Go to post

    Leave a comment:


  • beatjunkie27
    replied to Stuck on While Loop
    in Java
    No error, no bad output, after the user enters a number it just sits there....
    See more | Go to post

    Leave a comment:


  • beatjunkie27
    replied to Stuck on While Loop
    in Java
    Yes sir, I tried using this as the while loop and it compiles but it wont execute

    while( loopCounter <= days && loopCounter <= maxDays) { }

    I cant figure out what I am missing here....
    See more | Go to post

    Leave a comment:


  • beatjunkie27
    replied to Stuck on While Loop
    in Java
    Could you explain the parameters of the while loop, Im not understanding how you run up to the users input to a maximum of 40?...
    See more | Go to post

    Leave a comment:


  • beatjunkie27
    started a topic Stuck on While Loop
    in Java

    Stuck on While Loop

    I am working on a class assignment called Pennies for Pay
    the object of the program is to receive input for number of days worked.
    This should be > 0 and <= 40.

    An example output is below and you will notice, the pay doubles each day.

    Pay: $.01 on day 1. Total Salary $.01
    Pay: $.02 on day 2. Total Salary $.03
    Pay: $.04 on day 3. Total Salary $.07
    Pay: $.08 on day 4. Total Salary...
    See more | Go to post
    Last edited by Ganon11; Mar 18 '08, 08:57 PM. Reason: Please use the [CODE] tags provided.
No activity results to display
Show More
Working...