be annoying .. Aku Soku Zan
Originally posted by Stacey Johnson:
Hi,
I'm not too sure what you are trying to say. From what I understand, TestAccountClass is my main class in my program, the class Account is created within the program. I'm trying to execute the whole program to run. And display my output. My program compiles but it won't run. I get the error.
Ever Existing, Ever Conscious, Ever-new Bliss
Originally posted by Stacey Johnson:
So I've changed the last part of my program upon suggestions to this:
public double withdraw (double amount) {
return balance - amount;
}
public double deposit (double amount){
return balance + amount;
}
}
And I've got it up and running. Everything works accept for some reason it's not updating the new balance so I still display 20000 instead of 20500. Can anyone help me on this one?
Thanks Stacey
Thanks, leo
Originally posted by Stacey Johnson:
Hi out there,
Thanks for all the help with this I think I'm finally understanding it (or starting too). :roll:
So I've changed the last part of my program upon suggestions to this:
And I've got it up and running. Everything works accept for some reason it's not updating the new balance so I still display 20000 instead of 20500. Can anyone help me on this one?
Thanks Stacey
Originally posted by Stacey Johnson:
Hi out there,
Thanks for all the help with this I think I'm finally understanding it (or starting too). :roll:
So I've changed the last part of my program upon suggestions to this:
public double withdraw (double amount) {
return balance - amount;
}
public double deposit (double amount){
return balance + amount;
}
public double monthlyInterest() {
double monthlyInterestRate = (annualInterestRate/1200);
return balance * monthlyInterestRate;
}
}
And I've got it up and running. Everything works accept for some reason it's not updating the new balance so I still display 20000 instead of 20500. Can anyone help me on this one?
Thanks Stacey
Ever Existing, Ever Conscious, Ever-new Bliss
this llama doesn't want your drama, he just wants this tiny ad for his mama
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|