The illustration shows a code segment with the lines numbered from 42 through 66 and the annotations are as follows:
“cout.setf(ios::showpoint);
cout.precision(2);
cout << "If you deposit $100.00 at 5% interest, then\n"
<< "in ten years your account will be worth $"
<< yourAccount.getBalance( ) << endl;
return 0;
}
void BankAccount::update( )
{
balance = balance + fraction(interestRate)*balance;
}
void BankAccount::update(int years)
{
if (years == 1)
{
update( );
else if (years > 1)
{
“update(years - 1);” annotated as “Recursive function call”
“update( );” annotated as “Overloading (that is, calls to another function with the same name)
“}
}”