Results 1 to 2 of 2

Thread: Java help

  1. #1
    gmo
    gmo is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default Java help

    i'm writing a program makes a user enter the amount they get paid an hour and how many hours they worked today....

    If they work more than 40 hours, the first 40 hours are paid at their normal hourly rate, but any additional hours are paid at double the normal hourly rate.
    how do i make the program do this in a sequence? meaning i can do it separately

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: Java help

    how do i make the program do this in a sequence? meaning i can do it separately
    Does that mean you want to process more than one set of input?
    That would mean you need to put the code inside of a loop.
    Then you would need to give the user a way to exit the loop when there is no more data to input.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •