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?
Type: Posts; User: tcw843
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?
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...
So everywhere there is UPGRADE_PRICE_LODGING, I should put this:
else if (upgradeSelection == 'B')
{
upgradeName = UPGRADE_NAME_LODGING;
upgradeCost = UPGRADE_PRICE_LODGING;
...
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...
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.
Welcome to the Travel Program!
This program will let you set up a 5 day vacation with added on options.
***********************************************************************************
To...
Yes, here you go!
*******************************************************************************
Destination: Rome, Italy
Lodging Cost: $ 500.00
...
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...
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...