Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Java Program Advice Needed

    I'm a little st
    [/code]
    Last edited by Gomez; 03-09-2011 at 07:00 PM.

  • #2
    Regular Coder bobleny's Avatar
    Join Date
    May 2007
    Posts
    256
    Thanks
    3
    Thanked 11 Times in 11 Posts
    My first hint to you is, to put your code in CODE tags so that your post looks pretty.

    My second hint to you is, you know how much fuel each customer purchased right? Then each time there is a new customer add the amount of fuel purchased to a total fuel purchases variable. If you want to get real fancy make a total fuel purchases variable for each type of fuel being sold. If you want to know how how much revenue was incurred, you can either do the same as above, or you can take your three total fuel purchases and multiply them by their respective fuel rate. If you intend to do this inside of an object, you might consider using static variables.

    Oh, and fix your post... There is an edit button at the bottom of it...
    --www.firemelt.net--
    * No good deed goes unpunished.
    * Cheer up, the worst has yet to come...
    Get Firefox!

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    This also doesn't belong in the computer programming forum.
    Moved from computer programming to Java.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Tags for this Thread

    Posting Permissions

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