Hello and welcome to our community! Is this your first visit?
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
    Thanked 0 Times in 0 Posts

    Java Program Advice Needed

    I'm a little st
    Last edited by Gomez; 03-09-2011 at 08:00 PM.

  2. #2
    Regular Coder bobleny's Avatar
    Join Date
    May 2007
    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...
    * No good deed goes unpunished.
    * Cheer up, the worst has yet to come...

  3. #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 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'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


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