This site requires JavaScript, please enable it in your browser!
Greenfoot back
divinity
divinity wrote ...

2016/12/14

increasing instead of decreasing what is the cause, plz help

1
2
3
divinity divinity

2017/1/2

#
okay danpost i have add credit limit to creditcard account class; error am getting is create a local variable : credit limit, how to fix it i have add overdraft limit to checking account class; error am getting is create a local variable : overdraft limit, how to fix it i have add interest rate to savings account class; error am getting is create a local variable : interest rate , how to fix it
danpost danpost

2017/1/2

#
divinity wrote...
i have add credit limit to creditcard account class; ... i have add overdraft limit to checking account class; ... i have add interest rate to savings account class; ...
Please show what you did. I cannot be sure that you are either explaining it wrong or that you did the wrong thing.
divinity divinity

2017/1/2

#
if(newacctType == 1)
            {
                newacct[i] = new SavingsAccount(i, bal, client, interestRate);error: create a local variable for interestrate
            }
            else if(newacctType == 2)
            {
                newacct[i] = new CheckingAccount(i, bal, client, overdraftLimit);
            }
            else if(newacctType == 3)
            {
                newacct[i] = new CreditCardAccount(i, bal, client, creditlimit);
            }
danpost danpost

2017/1/2

#
You either need to substitute values for 'interestRate', 'overdraftLimit' and 'creditlimit', or declare local variables and assign values to them prior to the given code:
double interestRate = < some value >;
double overdraftLimit = < some value >;
double creditlimit = < some valu >;
divinity divinity

2017/1/2

#
thanks very much danpost
divinity divinity

2017/1/2

#
ah now have to code the gui part of it and lord that is hard
You need to login to post a reply.
1
2
3