thanks for the help Z i finally got it working correctly!!! initializing the balance in the constructor helped alot... i changed unpaidBalance to void and made a get method to return the balance...
Type: Posts; User: C++kingKnowledge
thanks for the help Z i finally got it working correctly!!! initializing the balance in the constructor helped alot... i changed unpaidBalance to void and made a get method to return the balance...
thanks for the enlightenment i should change that and not make it a constant.... i thought i had to change the unpaid balance but how would i set the new unpaid balance every time without resetting...
I'm supposed to get three inputs (loan amount, annual interest rate & loan period in years to repay loan) from the user and display a recommended repayment table based on the number of payments...