Search:

Type: Posts; User: tcw843

Search: Search took 0.07 seconds.

  1. Replies
    17
    Views
    809

    Re: Trouble with outputs

    So are you saying that

    upgradeCost = 0.0; should be upgradeCost = UPGRADE_PRICE_LODGING;?

    If that is the case, what happens if they choose another Upgrade option?
  2. Replies
    17
    Views
    809

    Re: Trouble with outputs

    I know that upgradeCost is declared with the main method variables at the beginning:

    double upgradeCost = 0.0;

    As far as borrowedUpgradeCost, I believe its given a value here:

    public static...
  3. Replies
    17
    Views
    809

    Re: Trouble with outputs

    So everywhere there is UPGRADE_PRICE_LODGING, I should put this:

    else if (upgradeSelection == 'B')
    {
    upgradeName = UPGRADE_NAME_LODGING;
    upgradeCost = UPGRADE_PRICE_LODGING;
    ...
  4. Replies
    17
    Views
    809

    Re: Trouble with outputs

    UPGRADE_PRICE_LODGING is the variable and its declared with the class constant variables at the beginning.

    public static final double UPGRADE_PRICE_LODGING = 125.00;

    Can you show an example...
  5. Replies
    17
    Views
    809

    Re: Trouble with outputs

    ok hang on. i will edit the post.

    --- Update ---

    I edited my post with the output to show where the problems are. Thank you so much for your help.
  6. Replies
    17
    Views
    809

    Re: Trouble with outputs

    Welcome to the Travel Program!
    This program will let you set up a 5 day vacation with added on options.
    ***********************************************************************************

    To...
  7. Replies
    17
    Views
    809

    Re: Trouble with outputs

    Yes, here you go!

    *******************************************************************************
    Destination: Rome, Italy
    Lodging Cost: $ 500.00
    ...
  8. Replies
    17
    Views
    809

    Trouble with outputs

    Hello everyone!

    I'm having some issues with my program. Its a pretty basic travel agency program. I have been debugging it for about a week now. The user selects an option on the Destination...
  9. Thread: Hello Everyone!

    by tcw843
    Replies
    0
    Views
    1,043

    Hello Everyone!

    My name is Tyler and I'm a beginner when it comes to Java. I have always loved computers but never had the opportunity to go back to school until recently! I love the challenges so far. Its so...
Results 1 to 9 of 9